[arbitrum] fix: max fee per gas less than block base fee (#829)
* fix * bump version * log error
This commit is contained in:
parent
ef6c9519be
commit
e802593e76
|
@ -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",
|
||||||
|
|
|
@ -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.")
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue