Skip to content

Commit f77987d

Browse files
authored
Fix logging of vaa as hex (#345)
1 parent 412ef5e commit f77987d

File tree

1 file changed

+1
-1
lines changed
  • third_party/pyth/multisig-wh-message-builder/src

1 file changed

+1
-1
lines changed

third_party/pyth/multisig-wh-message-builder/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ async function executeMultisigTx(
541541
);
542542
const { vaaBytes } = await response.json();
543543
console.log(`VAA (Base64): ${vaaBytes}`);
544-
console.log(`VAA (Hex): ${Buffer.from(vaaBytes).toString("hex")}`);
544+
console.log(`VAA (Hex): ${Buffer.from(vaaBytes, "base64").toString("hex")}`);
545545
const parsedVaa = await parse(vaaBytes);
546546
console.log(`Emitter chain: ${parsedVaa.emitter_chain}`);
547547
console.log(`Nonce: ${parsedVaa.nonce}`);

0 commit comments

Comments
 (0)