Skip to content

Commit

Permalink
chore: fix gas price bug
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Dec 8, 2023
1 parent 632edb6 commit 537e11d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class CosmosClient {
chain: CosmosChain = "wasm",
mnemonic?: string,
config: Omit<CosmosChainInfo, "owner"> = { prefix: chain },
gasPrice: GasPrice = GasPrice.fromString(`1${config.denom}`)
gasPrice?: GasPrice
) {
const defaultDenom = chain === "wasm" ? "uwasm" : "uaxl";
const chainInfo = {
Expand All @@ -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) {
Expand Down

0 comments on commit 537e11d

Please sign in to comment.