Skip to content

Commit a224199

Browse files
authored
Add more debugging info for sui pusher (#1087)
1 parent fe6d93f commit a224199

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "5.6.1",
3+
"version": "5.6.2",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

price_pusher/src/sui/sui.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ export class SuiPricePusher implements IPricePusher {
248248
priceIdChunk
249249
);
250250
if (vaas.length !== 1) {
251-
throw new Error("Expected a single VAA for all priceIds");
251+
throw new Error(
252+
`Expected a single VAA for all priceIds ${priceIdChunk} but received ${vaas.length} VAAs: ${vaas}`
253+
);
252254
}
253255
const vaa = vaas[0];
254256
const tx = new TransactionBlock();

0 commit comments

Comments
 (0)