Skip to content

Commit

Permalink
Add more debugging info for sui pusher (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m authored Oct 11, 2023
1 parent fe6d93f commit a224199
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion price_pusher/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion price_pusher/src/sui/sui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a224199

Please sign in to comment.