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 1
1
{
2
2
"name" : " @pythnetwork/price-pusher" ,
3
- "version" : " 5.2.0 " ,
3
+ "version" : " 5.2.1 " ,
4
4
"description" : " Pyth Price Pusher" ,
5
5
"homepage" : " https://pyth.network" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -240,6 +240,17 @@ export class EvmPricePusher implements IPricePusher {
240
240
return ;
241
241
}
242
242
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
+
243
254
if (
244
255
err . message . includes ( "sender doesn't have enough funds to send tx." )
245
256
) {
You can’t perform that action at this time.
0 commit comments