diff --git a/package-lock.json b/package-lock.json index 160dd382b3..b6bedb2e08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54807,7 +54807,7 @@ }, "price_pusher": { "name": "@pythnetwork/price-pusher", - "version": "5.7.0", + "version": "5.7.1", "license": "Apache-2.0", "dependencies": { "@injectivelabs/sdk-ts": "1.10.72", diff --git a/price_pusher/package.json b/price_pusher/package.json index 1f3778af5e..ae7abeafb4 100644 --- a/price_pusher/package.json +++ b/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "5.7.0", + "version": "5.7.1", "description": "Pyth Price Pusher", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/price_pusher/src/sui/sui.ts b/price_pusher/src/sui/sui.ts index 23f9990155..bb8e978866 100644 --- a/price_pusher/src/sui/sui.ts +++ b/price_pusher/src/sui/sui.ts @@ -299,10 +299,12 @@ export class SuiPricePusher implements IPricePusher { ); } catch (e: any) { console.log("Error when signAndExecuteTransactionBlock"); - if (String(e).includes("GasBalanceTooLow")) { - console.warn( - `The balance of gas object ${gasObject.objectId} is too low. Removing from pool.` - ); + if ( + String(e).includes("Balance of gas object") || + String(e).includes("GasBalanceTooLow") + ) { + // If the error is caused by insufficient gas, we should panic + throw e; } else { // Refresh the coin object here in case the error is caused by an object version mismatch. nextGasObject = await SuiPricePusher.tryRefreshObjectReference(