[arbitrum] fix: max fee per gas less than block base fee (#829)

* fix

* bump version

* log error
This commit is contained in:
Dev Kalra 2023-05-22 22:24:09 +05:30 committed by GitHub
parent ef6c9519be
commit e802593e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@pythnetwork/price-pusher", "name": "@pythnetwork/price-pusher",
"version": "5.2.0", "version": "5.2.1",
"description": "Pyth Price Pusher", "description": "Pyth Price Pusher",
"homepage": "https://pyth.network", "homepage": "https://pyth.network",
"main": "lib/index.js", "main": "lib/index.js",

View File

@ -240,6 +240,17 @@ export class EvmPricePusher implements IPricePusher {
return; return;
} }
if (err.message.includes("max fee per gas less than block base fee")) {
// We just have to handle this error and return.
// LastPushAttempt was stored with the class
// Next time the update will be executing, it will check the last attempt
// and increase the gas price accordingly.
console.log(
"The transaction failed with error: max fee per gas less than block base fee "
);
return;
}
if ( if (
err.message.includes("sender doesn't have enough funds to send tx.") err.message.includes("sender doesn't have enough funds to send tx.")
) { ) {