Skip to content

Commit

Permalink
chore: update genesis script to use native denom for neutron modules …
Browse files Browse the repository at this point in the history
…params
  • Loading branch information
Lockwarr committed Mar 23, 2023
1 parent 183fa14 commit fdc9aa9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/internal/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ __generate_proto_genesis_no_wasm() {
__set_wasm_permission_params "$genesis_file" "$contracts_owner_addr"
__set_gov_parameters "$genesis_file" "$gov_voting_period"
__modify_slashing_and_staking_params "$genesis_file"
__modify_feerefunder_params "$genesis_file" "$feerefunder_ack_fee_min" "$feerefunder_timeout_fee_min" "$native_currency"
__modify_neutron_modules_params "$genesis_file" "$feerefunder_ack_fee_min" "$feerefunder_timeout_fee_min" "$native_currency"

while IFS= read -r account_spec ; do
add_genesis_account "$account_spec" "$native_currency" "$genesis_home_dir"
Expand Down Expand Up @@ -223,7 +223,7 @@ __modify_slashing_and_staking_params() {
mv "$genesis_tmp_file" "$genesis_file"
}

__modify_feerefunder_params() {
__modify_neutron_modules_params() {
local genesis_file="$1"
local -r ack_fee_amount="$2"
local -r timeout_fee_amount="$3"
Expand All @@ -235,7 +235,8 @@ __modify_feerefunder_params() {
jq '.app_state["feerefunder"]["params"]["min_fee"]["ack_fee"][0]["amount"]="'"$ack_fee_amount"'"' \
| jq '.app_state["feerefunder"]["params"]["min_fee"]["ack_fee"][0]["denom"]="'"$native_currency"'"' \
| jq '.app_state["feerefunder"]["params"]["min_fee"]["timeout_fee"][0]["amount"]="'"$timeout_fee_amount"'"' \
| jq '.app_state["feerefunder"]["params"]["min_fee"]["timeout_fee"][0]["denom"]="'"$native_currency"'"' > "$genesis_tmp_file"
| jq '.app_state["feerefunder"]["params"]["min_fee"]["timeout_fee"][0]["denom"]="'"$native_currency"'"' \
| jq '.app_state["interchainqueries"]["params"]["query_deposit"][0]["denom"]="'"$native_currency"'"' > "$genesis_tmp_file"
mv "$genesis_tmp_file" "$genesis_file"
}

Expand Down

0 comments on commit fdc9aa9

Please sign in to comment.