From c95db127c37a1027558ec2c22d7b6e22b5416d40 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Wed, 7 Jun 2023 10:35:46 +0200 Subject: [PATCH] Log msgs and bodyBytes --- components/forms/TransactionSigning.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/forms/TransactionSigning.tsx b/components/forms/TransactionSigning.tsx index accc20d..9a361d4 100644 --- a/components/forms/TransactionSigning.tsx +++ b/components/forms/TransactionSigning.tsx @@ -1,5 +1,5 @@ import { MultisigThresholdPubkey, makeCosmoshubPath } from "@cosmjs/amino"; -import { toBase64 } from "@cosmjs/encoding"; +import { toBase64, toHex } from "@cosmjs/encoding"; import { LedgerSigner } from "@cosmjs/ledger-amino"; import { SigningStargateClient } from "@cosmjs/stargate"; import { assert } from "@cosmjs/utils"; @@ -155,6 +155,8 @@ const TransactionSigning = (props: Props) => { chainId: state.chain.chainId, }; + console.log({ msgs: props.tx.msgs }); + const { bodyBytes, signatures } = await signingClient.sign( signerAddress, props.tx.msgs, @@ -163,6 +165,8 @@ const TransactionSigning = (props: Props) => { signerData, ); + console.log({ bodyBytes: toHex(bodyBytes) }); + // check existing signatures const bases64EncodedSignature = toBase64(signatures[0]); const bases64EncodedBodyBytes = toBase64(bodyBytes);