Skip to content

Commit

Permalink
Merge pull request #163 from scrtlabs/fix-signAmino-memo
Browse files Browse the repository at this point in the history
`signAmino()`: use `memo` from signed transaction instead of from the caller
  • Loading branch information
assafmo authored Mar 18, 2024
2 parents f66b467 + 505ef9a commit 2defd1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog & Version Info

## 1.12.5

Fix `signAmino()` to broadcast the memo from the signer (wallet) instead of the memo from the caller.

## 1.12.4

Fix `txsQuery()` for Cosmos SDK v0.46+ chains
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "secretjs",
"description": "The JavaScript SDK for Secret Network",
"version": "1.12.4",
"version": "1.12.5",
"license": "MIT",
"author": "SCRT Labs",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src/secret_network_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1904,7 +1904,7 @@ export class SecretNetworkClient {
return asProto;
}),
),
memo: memo,
memo: signed.memo, // memo might have been changed by the wallet before signing
},
};
const txBodyBytes = await this.encodeTx(txBody);
Expand Down

0 comments on commit 2defd1b

Please sign in to comment.