From 537e11d4718f9ac1dafbf32720849a7876398179 Mon Sep 17 00:00:00 2001 From: npty Date: Fri, 8 Dec 2023 20:17:03 +0700 Subject: [PATCH] chore: fix gas price bug --- .../axelar-local-dev-cosmos/src/clients/cosmos/CosmosClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/axelar-local-dev-cosmos/src/clients/cosmos/CosmosClient.ts b/packages/axelar-local-dev-cosmos/src/clients/cosmos/CosmosClient.ts index 5b73428e..eba8118d 100644 --- a/packages/axelar-local-dev-cosmos/src/clients/cosmos/CosmosClient.ts +++ b/packages/axelar-local-dev-cosmos/src/clients/cosmos/CosmosClient.ts @@ -41,7 +41,7 @@ export class CosmosClient { chain: CosmosChain = "wasm", mnemonic?: string, config: Omit = { prefix: chain }, - gasPrice: GasPrice = GasPrice.fromString(`1${config.denom}`) + gasPrice?: GasPrice ) { const defaultDenom = chain === "wasm" ? "uwasm" : "uaxl"; const chainInfo = { @@ -50,6 +50,7 @@ export class CosmosClient { rpcUrl: config.rpcUrl || `http://localhost/${chain}-rpc`, wsUrl: config.wsUrl || `ws://localhost/${chain}-rpc/websocket`, }; + gasPrice = gasPrice || GasPrice.fromString(`1${chainInfo.denom}`); let _mnemonic = mnemonic; if (!_mnemonic) {