From a224199c8ffe68167a18d76d89684f8fbcf0ced3 Mon Sep 17 00:00:00 2001 From: Amin Moghaddam Date: Wed, 11 Oct 2023 12:17:46 +0200 Subject: [PATCH] Add more debugging info for sui pusher (#1087) --- package-lock.json | 2 +- price_pusher/package.json | 2 +- price_pusher/src/sui/sui.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 87b31ebfbd..51f02b98c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -55940,7 +55940,7 @@ }, "price_pusher": { "name": "@pythnetwork/price-pusher", - "version": "5.6.1", + "version": "5.6.2", "license": "Apache-2.0", "dependencies": { "@injectivelabs/sdk-ts": "1.10.72", diff --git a/price_pusher/package.json b/price_pusher/package.json index 52b9d98946..9c22291333 100644 --- a/price_pusher/package.json +++ b/price_pusher/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/price-pusher", - "version": "5.6.1", + "version": "5.6.2", "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 d996429da3..296f14bfe0 100644 --- a/price_pusher/src/sui/sui.ts +++ b/price_pusher/src/sui/sui.ts @@ -248,7 +248,9 @@ export class SuiPricePusher implements IPricePusher { priceIdChunk ); if (vaas.length !== 1) { - throw new Error("Expected a single VAA for all priceIds"); + throw new Error( + `Expected a single VAA for all priceIds ${priceIdChunk} but received ${vaas.length} VAAs: ${vaas}` + ); } const vaa = vaas[0]; const tx = new TransactionBlock();