diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d2442f6..206c706b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to ## [Unreleased] +### Fixed + +- @cosmjs/cosmwasm-stargate: Use `CosmWasmFeeTable` instead of `CosmosFeeTable` + in `SigningCosmWasmClientOptions`; export type `CosmWasmFeeTable`. + ## [0.25.0] - 2021-05-05 ### Added diff --git a/packages/cosmwasm-stargate/src/index.ts b/packages/cosmwasm-stargate/src/index.ts index ae8a2d24..3e60a6ba 100644 --- a/packages/cosmwasm-stargate/src/index.ts +++ b/packages/cosmwasm-stargate/src/index.ts @@ -16,6 +16,7 @@ export { } from "./encodeobjects"; export { defaultGasLimits, + CosmWasmFeeTable, // part of SigningCosmWasmClientOptions SigningCosmWasmClient, SigningCosmWasmClientOptions, } from "./signingcosmwasmclient"; diff --git a/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts b/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts index c62f7da4..b42f9295 100644 --- a/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts +++ b/packages/cosmwasm-stargate/src/signingcosmwasmclient.ts @@ -123,7 +123,7 @@ export interface SigningCosmWasmClientOptions { readonly aminoTypes?: AminoTypes; readonly prefix?: string; readonly gasPrice?: GasPrice; - readonly gasLimits?: Partial>; + readonly gasLimits?: Partial>; } /** Use for testing only */ @@ -133,7 +133,7 @@ export interface PrivateSigningCosmWasmClient { } export class SigningCosmWasmClient extends CosmWasmClient { - public readonly fees: CosmosFeeTable; + public readonly fees: CosmWasmFeeTable; public readonly registry: Registry; private readonly signer: OfflineSigner; @@ -176,7 +176,7 @@ export class SigningCosmWasmClient extends CosmWasmClient { gasPrice = defaultGasPrice, gasLimits = {}, } = options; - this.fees = buildFeeTable(gasPrice, defaultGasLimits, gasLimits); + this.fees = buildFeeTable(gasPrice, defaultGasLimits, gasLimits); this.registry = registry; this.aminoTypes = aminoTypes; this.signer = signer;