diff --git a/hermes_config.toml b/hermes_config.toml index 74640b4..d04b5cc 100644 --- a/hermes_config.toml +++ b/hermes_config.toml @@ -93,7 +93,7 @@ denominator = '3' [chains.gas_price] price = 1 -denom = 'stake' +denom = 'ufairy' [chains.address_type] derivation = 'cosmos' diff --git a/priv_gov_setup.sh b/priv_gov_setup.sh index 694a3e8..839e16c 100755 --- a/priv_gov_setup.sh +++ b/priv_gov_setup.sh @@ -192,7 +192,7 @@ make devnet-down echo "Enter the new voting period (e.g., 2s, 30m, 240h):" read new_voting_period -sed -i "s/voting_period: .*/voting_period: ${new_voting_period}/" $dir_path/privgov/config.yml +sed -i "/^\s*voting_period: .*/voting_period: ${new_voting_period}/" $dir_path/privgov/config.yml # Start fairyringd with logging cd "$dir_path/fairyring" @@ -229,17 +229,16 @@ if [[ $? -ne 0 ]]; then exit 1 fi -hermes keys add --key-name fk --chain fairytest-1 --mnemonic-file "$mnemonic_file" --overwrite +hermes keys add --key-name fk --chain fairyring_devnet --mnemonic-file "$mnemonic_file" --overwrite if [[ $? -ne 0 ]]; then - echo "Failed to add fk key for fairytest-1." + echo "Failed to add fk key for fairyring_devnet." exit 1 fi - -sleep 30 +sleep 5 # Create a new IBC channel -hermes create channel --new-client-connection --a-chain privgov --b-chain fairytest-1 --a-port gov --b-port keyshare --channel-version keyshare-1 --yes +hermes create channel --new-client-connection --a-chain privgov --b-chain fairyring_devnet --a-port gov --b-port keyshare --channel-version keyshare-1 --yes if [[ $? -ne 0 ]]; then echo "Failed to create a new IBC channel." exit 1