diff --git a/relay/main/run.sh b/relay/main/run.sh index 35bbd451..4ebfbefb 100644 --- a/relay/main/run.sh +++ b/relay/main/run.sh @@ -55,7 +55,11 @@ envsubst < $HOME/.hermes/config.toml.template > $HOME/.hermes/config.toml chain_ids=$(cat $HOME/.hermes/config.toml |grep "id = " |sed -e "s/id = //g" -e "s/'//g" -e 's/"//g') for chain_id in $chain_ids; do - $HOME/.hermes/bin/hermes keys add --chain $chain_id --mnemonic-file $HOME/.hermes/mnemonic.txt + hd_path="m/44'/118'/0'/0/0" # default + if [ $( echo "${chain_id}" | grep -cE "^(canto_7700-1)$" ) -ne 0 ]; then + hd_path="m/44'/60'/0'/0/0" # evm + fi + $HOME/.hermes/bin/hermes keys add --hd-path "${hd_path}" --chain $chain_id --mnemonic-file $HOME/.hermes/mnemonic.txt done ########################################################################################################################