diff --git a/price_pusher/package.json b/price_pusher/package.json index 25f5dbbf..9471092e 100644 --- a/price_pusher/package.json +++ b/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "5.4.4", + "version": "5.4.5", "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 e47911bc..d1a71d38 100644 --- a/price_pusher/src/sui/sui.ts +++ b/price_pusher/src/sui/sui.ts @@ -322,7 +322,7 @@ export class SuiPricePusher implements IPricePusher { "Successfully updated price with transaction digest ", result.digest ); - } catch (e) { + } catch (e: any) { console.log("Error when signAndExecuteTransactionBlock"); if (String(e).includes("GasBalanceTooLow")) { console.warn( @@ -332,6 +332,11 @@ export class SuiPricePusher implements IPricePusher { nextGasObject = gasObject; } console.error(e); + + if ("data" in e) { + console.error("Error has .data field:"); + console.error(JSON.stringify(e.data)); + } } if (nextGasObject !== undefined) { diff --git a/target_chains/sui/contracts/sources/governance/set_stale_price_threshold.move b/target_chains/sui/contracts/sources/governance/set_stale_price_threshold.move index ed5df545..ff1becbd 100644 --- a/target_chains/sui/contracts/sources/governance/set_stale_price_threshold.move +++ b/target_chains/sui/contracts/sources/governance/set_stale_price_threshold.move @@ -100,4 +100,4 @@ module pyth::set_stale_price_threshold_test { pyth_tests::cleanup_worm_state_pyth_state_and_clock(worm_state, pyth_state, clock); test_scenario::end(scenario); } -} \ No newline at end of file +}