Fix fee table type in SigningCosmWasmClientOptions

This commit is contained in:
Simon Warta 2021-05-05 18:39:29 +02:00
parent fa347f66e9
commit bd2494c074
3 changed files with 9 additions and 3 deletions

View File

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

View File

@ -16,6 +16,7 @@ export {
} from "./encodeobjects";
export {
defaultGasLimits,
CosmWasmFeeTable, // part of SigningCosmWasmClientOptions
SigningCosmWasmClient,
SigningCosmWasmClientOptions,
} from "./signingcosmwasmclient";

View File

@ -123,7 +123,7 @@ export interface SigningCosmWasmClientOptions {
readonly aminoTypes?: AminoTypes;
readonly prefix?: string;
readonly gasPrice?: GasPrice;
readonly gasLimits?: Partial<GasLimits<CosmosFeeTable>>;
readonly gasLimits?: Partial<GasLimits<CosmWasmFeeTable>>;
}
/** 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<CosmosFeeTable>(gasPrice, defaultGasLimits, gasLimits);
this.fees = buildFeeTable<CosmWasmFeeTable>(gasPrice, defaultGasLimits, gasLimits);
this.registry = registry;
this.aminoTypes = aminoTypes;
this.signer = signer;