mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Fix fee table type in SigningCosmWasmClientOptions
This commit is contained in:
parent
fa347f66e9
commit
bd2494c074
@ -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
|
||||
|
@ -16,6 +16,7 @@ export {
|
||||
} from "./encodeobjects";
|
||||
export {
|
||||
defaultGasLimits,
|
||||
CosmWasmFeeTable, // part of SigningCosmWasmClientOptions
|
||||
SigningCosmWasmClient,
|
||||
SigningCosmWasmClientOptions,
|
||||
} from "./signingcosmwasmclient";
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user