Skip to content

Commit

Permalink
relay: fix cointype 60... for main instance
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Jun 28, 2024
1 parent 2d2da09 commit 99275d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relay/main/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

########################################################################################################################
Expand Down

0 comments on commit 99275d0

Please sign in to comment.