Skip to content

Commit e802593

Browse files
author
Dev Kalra
authored
[arbitrum] fix: max fee per gas less than block base fee (#829)
* fix * bump version * log error
1 parent ef6c951 commit e802593

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

price_pusher/src/evm/evm.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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
) {

0 commit comments

Comments
 (0)