Skip to content

Commit 1b2f6ff

Browse files
committed
fix(agoric-cli): upgrade empty minimum-gas-prices to 0urun
1 parent 73573a2 commit 1b2f6ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/agoric-cli/lib/chain-config.js

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const STAKING_DENOM = 'ubld';
77
export const STAKING_MAX_VALIDATORS = 150;
88

99
export const GOV_DEPOSIT_COINS = [{ amount: '1000000', denom: MINT_DENOM }];
10+
export const DEFAULT_MINIMUM_GAS_PRICES = `0${CENTRAL_DENOM}`;
1011

1112
// Can't beat the speed of light, we need 600ms round trip time for the other
1213
// side of Earth, and multiple round trips per block.
@@ -39,6 +40,11 @@ export function finishCosmosApp({
3940
app.api['enabled-unsafe-cors'] = true;
4041
}
4142

43+
if (!app['minimum-gas-prices']) {
44+
// Set the default, to prevent a warning if there is an empty string.
45+
app['minimum-gas-prices'] = DEFAULT_MINIMUM_GAS_PRICES;
46+
}
47+
4248
// Offset the GRPC listener from our rpc port.
4349
app.grpc.address = `0.0.0.0:${rpcPort +
4450
DEFAULT_GRPC_PORT -

0 commit comments

Comments
 (0)