Skip to content

Commit a717fd7

Browse files
xosnetvladjdk
andauthored
Fix: Correct JSON path for setting max_gas in genesis (#39)
Co-authored-by: Vlad J <[email protected]>
1 parent 28df179 commit a717fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local_node.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then
139139
jq '.app_state.erc20.token_pairs=[{contract_owner:1,erc20_address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",denom:"utest",enabled:true}]' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
140140

141141
# Set gas limit in genesis
142-
jq '.consensus_params["block"]["max_gas"]="10000000"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
142+
jq '.consensus.params.block.max_gas="10000000"' "$GENESIS" >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS"
143143

144144
if [[ $1 == "pending" ]]; then
145145
if [[ "$OSTYPE" == "darwin"* ]]; then

0 commit comments

Comments
 (0)