File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @pythnetwork/price-pusher" ,
3- "version" : " 5.2.0 " ,
3+ "version" : " 5.2.1 " ,
44 "description" : " Pyth Price Pusher" ,
55 "homepage" : " https://pyth.network" ,
66 "main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -240,6 +240,17 @@ export class EvmPricePusher implements IPricePusher {
240240 return ;
241241 }
242242
243+ if ( err . message . includes ( "max fee per gas less than block base fee" ) ) {
244+ // We just have to handle this error and return.
245+ // LastPushAttempt was stored with the class
246+ // Next time the update will be executing, it will check the last attempt
247+ // and increase the gas price accordingly.
248+ console . log (
249+ "The transaction failed with error: max fee per gas less than block base fee "
250+ ) ;
251+ return ;
252+ }
253+
243254 if (
244255 err . message . includes ( "sender doesn't have enough funds to send tx." )
245256 ) {
You can’t perform that action at this time.
0 commit comments