From bf0ec62d18d82501477421967e4a6ed69c4f0b38 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 22 Nov 2023 12:33:40 +0100 Subject: [PATCH] Deprecate IndexedTx.rawLog and DeliverTxResponse.rawLog --- CHANGELOG.md | 3 +++ packages/stargate/src/stargateclient.ts | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 061f1cf88e..2321f933b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,9 @@ and this project adheres to `TendermintClient`. - @cosmjs/stargate: Deprecate `SigningStargateClient.sendIbcTokens`. Please use `signAndBroadcast` + `MsgTransferEncodeObject` instead. ([#1493]) +- @cosmjs/stargate: Deprecate `IndexedTx.rawLog` and `DeliverTxResponse.rawLog` + because those fields are unset from Cosmos SDK 0.50 onwards (see + [here](https://github.com/cosmos/cosmos-sdk/pull/15845)). [#1493]: https://github.com/cosmos/cosmjs/issues/1493 diff --git a/packages/stargate/src/stargateclient.ts b/packages/stargate/src/stargateclient.ts index b958d990a0..d5d6c6b334 100644 --- a/packages/stargate/src/stargateclient.ts +++ b/packages/stargate/src/stargateclient.ts @@ -68,6 +68,9 @@ export interface IndexedTx { * This currently seems to merge attributes of multiple events into one event per type * (https://github.com/tendermint/tendermint/issues/9595). You might want to use the `events` * field instead. + * + * @deprecated This field is not filled anymore in Cosmos SDK 0.50+ (https://github.com/cosmos/cosmos-sdk/pull/15845). + * Please consider using `events` instead. */ readonly rawLog: string; /** @@ -118,6 +121,9 @@ export interface DeliverTxResponse { * This currently seems to merge attributes of multiple events into one event per type * (https://github.com/tendermint/tendermint/issues/9595). You might want to use the `events` * field instead. + * + * @deprecated This field is not filled anymore in Cosmos SDK 0.50+ (https://github.com/cosmos/cosmos-sdk/pull/15845). + * Please consider using `events` instead. */ readonly rawLog?: string; /** @deprecated Use `msgResponses` instead. */