Fix logging of vaa as hex (#345)

This commit is contained in:
Ali Behjati 2022-10-13 11:08:02 -05:00 committed by GitHub
parent 412ef5e221
commit f77987df70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ async function executeMultisigTx(
);
const { vaaBytes } = await response.json();
console.log(`VAA (Base64): ${vaaBytes}`);
console.log(`VAA (Hex): ${Buffer.from(vaaBytes).toString("hex")}`);
console.log(`VAA (Hex): ${Buffer.from(vaaBytes, "base64").toString("hex")}`);
const parsedVaa = await parse(vaaBytes);
console.log(`Emitter chain: ${parsedVaa.emitter_chain}`);
console.log(`Nonce: ${parsedVaa.nonce}`);