Skip to content

Commit

Permalink
Merge pull request #1504 from cosmos/deprecate-sendIbcTokens
Browse files Browse the repository at this point in the history
Deprecate SigningStargateClient.sendIbcTokens
  • Loading branch information
webmaster128 authored Nov 8, 2023
2 parents c7b6bd3 + 9c55a85 commit bb34b58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ and this project adheres to

- @cosmjs/tendermint-rpc: `CometClient` should be used instead of
`TendermintClient`.
- @cosmjs/stargate: Deprecate `SigningStargateClient.sendIbcTokens`. Please use
`signAndBroadcast` + `MsgTransferEncodeObject` instead. ([#1493])

[#1493]: https://github.com/cosmos/cosmjs/issues/1493

## [0.31.3] - 2023-10-25

Expand Down
6 changes: 6 additions & 0 deletions packages/stargate/src/signingstargateclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ export class SigningStargateClient extends StargateClient {
return this.signAndBroadcast(delegatorAddress, [withdrawMsg], fee, memo);
}

/**
* @deprecated This API does not support setting the memo field of `MsgTransfer` (only the transaction memo).
* We'll remove this method at some point because trying to wrap the various message types is a losing strategy.
* Please migrate to `signAndBroadcast` with an `MsgTransferEncodeObject` created in the caller code instead.
* @see https://github.com/cosmos/cosmjs/issues/1493
*/
public async sendIbcTokens(
senderAddress: string,
recipientAddress: string,
Expand Down

0 comments on commit bb34b58

Please sign in to comment.