Deprecate SigningStargateClient.sendIbcTokens

This commit is contained in:
Simon Warta 2023-11-08 17:54:59 +01:00
parent c7b6bd32c4
commit 9c55a85be0
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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,