Fix fee table type in SigningCosmWasmClientOptions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user