From 2ffe5b1d5a22338c89d73fba529f751c42e8e9f9 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 8 Mar 2023 15:22:32 -0800 Subject: [PATCH] Fixed formatting and added entries to CHANGELOG.md. --- CHANGELOG.md | 8 ++++++++ packages/cosmwasm-stargate/src/signingcosmwasmclient.ts | 2 +- packages/stargate/src/signingstargateclient.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dece7b1a05..4644d4aa43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,12 +28,16 @@ and this project adheres to `createWasmAminoConverters()` instead. - @cosmjs/encoding: Remove previously deprecated `Bech32` class. Please replace `Bech32.encode`/`.decode` with free the functions `toBech32`/`fromBech32`. +- @cosmjs/cosmwasm-stargate: Changed the `SigningCosmWasmClient` constructor to + include all Amino type converters that the `SigningStargateClient` uses by + default, to match the default registry types ([#1384]). [#1002]: https://github.com/cosmos/cosmjs/issues/1002 [#1240]: https://github.com/cosmos/cosmjs/pull/1240 [#1289]: https://github.com/cosmos/cosmjs/issues/1289 [#1291]: https://github.com/cosmos/cosmjs/issues/1291 [#1329]: https://github.com/cosmos/cosmjs/pull/1329 +[#1384]: https://github.com/cosmos/cosmjs/pull/1384 ### Added @@ -54,11 +58,15 @@ and this project adheres to addresses for Instantiate2 ([#1253]). - @cosmjs/stargate: Add `txIndex` to `DeliverTxResponse` and `IndexedTx` ([#1361]). +- @cosmjs/stargate: Add `createDefaultAminoConverters` to access the + `SigningStargateClient`'s list of default Amino type converters to match the + default registry types in `defaultStargateTypes` ([#1384]). [#1253]: https://github.com/cosmos/cosmjs/pull/1253 [#1308]: https://github.com/cosmos/cosmjs/pull/1308 [#1361]: https://github.com/cosmos/cosmjs/issues/1361 [#1376]: https://github.com/cosmos/cosmjs/pull/1376 +[#1384]: https://github.com/cosmos/cosmjs/pull/1384 ## [0.29.5] - 2022-12-07 diff --git a/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts b/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts index fce9e2e308..e8885fe6fe 100644 --- a/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts +++ b/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts @@ -231,7 +231,7 @@ export class SigningCosmWasmClient extends CosmWasmClient { const { registry = new Registry([ ...defaultStargateTypes, - ...wasmTypes + ...wasmTypes, ]), aminoTypes = new AminoTypes({ ...createDefaultAminoConverters(), diff --git a/packages/stargate/src/signingstargateclient.ts b/packages/stargate/src/signingstargateclient.ts index 10b1125ad3..d782e08c72 100644 --- a/packages/stargate/src/signingstargateclient.ts +++ b/packages/stargate/src/signingstargateclient.ts @@ -161,7 +161,7 @@ export class SigningStargateClient extends StargateClient { super(tmClient, options); const { registry = new Registry(defaultRegistryTypes), - aminoTypes = new AminoTypes(createDefaultAminoConverters()) + aminoTypes = new AminoTypes(createDefaultAminoConverters()), } = options; this.registry = registry; this.aminoTypes = aminoTypes;