Skip to content

Commit

Permalink
fix: update signAmino method to use messages directly
Browse files Browse the repository at this point in the history
This change simplifies the code by removing unnecessary mapping of
messages.
  • Loading branch information
fmorency committed Nov 8, 2024
1 parent e819a1f commit 0eb3742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stargate/src/signingstargateclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 0eb3742

Please sign in to comment.