From 0eb3742c362455299ec23892e9db96e9095e3b50 Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:41:11 -0500 Subject: [PATCH] fix: update `signAmino` method to use `messages` directly This change simplifies the code by removing unnecessary mapping of messages. --- packages/stargate/src/signingstargateclient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stargate/src/signingstargateclient.ts b/packages/stargate/src/signingstargateclient.ts index bb9e9715c2..ac0a6d16c0 100644 --- a/packages/stargate/src/signingstargateclient.ts +++ b/packages/stargate/src/signingstargateclient.ts @@ -405,7 +405,7 @@ export class SigningStargateClient extends StargateClient { const signDoc = makeSignDocAmino(msgs, fee, chainId, memo, accountNumber, sequence, timeoutHeight); const { signature, signed } = await this.signer.signAmino(signerAddress, signDoc); const signedTxBody = { - messages: signed.msgs.map((msg) => this.aminoTypes.fromAmino(msg)), + messages, memo: signed.memo, timeoutHeight: timeoutHeight, };