Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
fix sign amino wallet signer
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed Jul 5, 2022
1 parent 8aa1cef commit 234c636
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oraichain/cosmosjs",
"licenses": [],
"version": "0.1.1",
"version": "0.1.2",
"description": "A JavasSript Open Source Library for Oraichain and possibly many other Cosmos network blockchains as well",
"main": "dist/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/walletSigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class WalletSigner extends Wallet {

async signAmino(msgs, bodyBytes, authInfoBytes, accountNumber, sequence, fee, memo, sender) {
const signDoc = this.makeSignDoc(msgs, accountNumber, sequence, fee, memo);
const response = await this.signerOrChild.signAmino(sender, signDoc);
const response = await this.signerOrChild.signAmino(signDoc.chain_id, sender, signDoc);
const signature = Buffer.from(response.signature.signature, "base64");
const newAuthInfoBytes = this.handleNewAuthInfoBytes(this.getAminoAuthInfoBytes(authInfoBytes), response.signed.fee);
return this.cosmos.constructSignedTxBytes(this.handleNewBodyBytes(bodyBytes, response.signed.msgs, response.signed.memo), newAuthInfoBytes, [signature]);
Expand Down

0 comments on commit 234c636

Please sign in to comment.