Skip to content

Commit

Permalink
fix(scripts): add an option to skip evm base fees (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt authored Apr 18, 2024
1 parent 83177bb commit ea51eee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export MONIKER="$ROLLAPP_CHAIN_ID-sequencer"

export ROLLAPP_HOME_DIR="$HOME/.rollapp_evm"
export ROLLAPP_SETTLEMENT_INIT_DIR_PATH="${ROLLAPP_HOME_DIR}/init"
export SKIP_EVM_BASE_FEE=true # optional, removes fees on the rollapp
```

And initialize the rollapp:
Expand Down
1 change: 0 additions & 1 deletion scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ SETTLEMENT_KEY_NAME_GENESIS="$HUB_KEY_WITH_FUNDS"
# rollapp config
ROLLAPP_CHAIN_ID=$("$EXECUTABLE" config | jq -r '."chain-id"')
ROLLAPP_RPC_FOR_RELAYER=$("$EXECUTABLE" config | jq -r '."node"')
ROLLAPP_KEY_NAME_GENESIS="rol-user"

RELAYER_KEY_FOR_ROLLAP="relayer-rollapp-key"
RELAYER_KEY_FOR_HUB="relayer-hub-key"
Expand Down
4 changes: 3 additions & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ set_denom() {
fi
}

SKIP_BASE_FEE=${SKIP_EVM_BASE_FEE-false}

set_EVM_params() {
jq '.consensus_params["block"]["max_gas"] = "400000000"' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
jq '.app_state["feemarket"]["params"]["no_base_fee"] = false' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
jq --arg skip "$SKIP_BASE_FEE" '.app_state["feemarket"]["params"]["no_base_fee"] = ($skip == "true")' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
jq '.app_state["feemarket"]["params"]["min_gas_price"] = "0.0"' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
}

Expand Down

0 comments on commit ea51eee

Please sign in to comment.