-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evmos bech32 prefix is not detected #1785
Comments
This codepath in Hermes hasn't been tested in months (since #1295), thank you for highlighting the problem! I prepared a quick dev branch for you to give it a try, seems like the most important change is just renaming some variables: https://github.com/informalsystems/ibc-rs/tree/1785_evmos Can you let us know if this works? |
Hey @adizere, thanks for the update. I will need some time to test it out. Will post my update here soon. |
HI @adizere , below are my observations: Oberservations from running both Gaia and Evmos chainBoth Gaia and Evmos chains were run using Gaia: accounts:
- name: akash
coins: ["10000000000000uatom", "100000000stake"]
- name: badal
coins: ["50000000000uatom"]
validator:
name: akash
staked: "1000000stake"
host:
rpc: ":26657"
p2p: ":26656"
prof: ":6061"
grpc: ":9095"
grpc-web: ":9093"
api: ":1318"
frontend: ":8081"
dev-ui: ":12346"
faucet:
name: badal
coins: ["100000uatom"]
port: 4500
build:
binary: "gaiad"
init:
home: "home/arnab/.gaia"
genesis:
chain_id: "localcosmos-1" Evmos: accounts:
- name: alice
coins: ["100000000stake", "100000000000000000000aevmos"]
- name: bob
coins: ["5000000000000aevmos"]
validator:
name: alice
staked: "100000000000000000000aevmos"
host:
rpc: ":36657"
p2p: ":36656"
prof: ":7061"
grpc: ":10095"
grpc-web: ":10093"
api: ":2318"
frontend: ":9081"
dev-ui: ":22346"
faucet:
name: bob
coins: ["100000aevmos"]
port: 4501
build:
binary: "evmosd"
init:
home: "$HOME/.evmosd"
app:
evm-rpc:
address: "0.0.0.0:8545" # change the JSON-RPC address and port
ws-address: "0.0.0.0:8546" # change the JSON-RPC websocket address and port
genesis:
chain_id: "evmosd_9000-1"
app_state:
staking:
params:
bond_denom: "aevmos"
mint:
params:
mint_denom: "aevmos"
crisis:
constant_fee:
denom: "aevmos"
gov:
deposit_params:
min_deposit:
- amount: "10000000"
denom: "aevmos"
evm:
params:
evm_denom: "aevmos" Account When both chains were started, the mnemonics of
[GAIA DAEMON] cosmos16xv7mzk9gffqs28wxq9etdsz083af7jxhzu2xt
[STARPORT] 🙂 Created account "badal" with address "cosmos16xv7mzk9gffqs28wxq9etdsz083af7jxhzu2xt" with mnemonic: "path oak treat put saddle quarter uniform broom aunt text cotton slice hotel mention dwarf prosper prepare buffalo still alone sweet lesson worth gentle"
[EVMOS DAEMON] evmos147h9vvlhxxe8nhjgaadraeu93rv9xv36dvfv0v
[STARPORT] 🙂 Created account "bob" with address "evmos147h9vvlhxxe8nhjgaadraeu93rv9xv36dvfv0v" with mnemonic: "scissors crouch hair bacon magnet analyst drip scare palace tragic verify forget have census blame best rabbit buzz hip whale define also october flag" Now while trying to use the hermes CLI to restore the account addresses through following comand: $ hermes keys restore --mnemonic <account-mnemonic> <chain-id> Account address of
The public key type of Evmos is |
Can you also share you Hermes config.toml?
Damn! I have no clear idea yet what could be causing this. We'll try to reproduce the problem in the meantime. CC-ing @tomtau since he was the original contributor of evmos support in Hermes, and he might know best what the problem is here (or if my PR is missing something). |
I remember facing a similar problem when testing the Ethermint support PR. @arnabghose997 Can you try with an explicit derivation path? ->
|
Sure @adizere, following is the Hermes config.toml file I used:
|
Hey @hu55a1n1 , it worked! Thank you for your help :) I am now curious to know more about deviation path, and why was it required to be passed as parameter in case of Evmos? But nonetheless, thank you Shoaib for your help. I will continue further by creating the IBC channel and will update here |
I'm glad it worked. 👍
|
Hey @adizere, @hu55a1n1 , I performed an IBC transfer between Gaia and Evmos chain, and it worked like a charm! Thank you again Adi and Shoaib for the help. Before closing this issue, would it be possible for you to shed some light on when would this change be merged with the main codebase and released? |
There are two concepts "Ethermint" refers or referred to:
Given the name in the "address type" in Hermes refers to the address derivation defined in the Ethermint library which is used by different networks (Injective, Evmos, Umee, Cronos...), it makes sense to keep it as is.
Is this change necessary? It seems the current main can support Evmos as it is, it's just three configuration options to keep in mind:
There is no need to merge that change. There are two possible follow up changes:
|
Many thanks @tomtau, that clarifies a lot.
I agree the original renaming changes I proposed are not necessary. Reverted that and added minor clarifications to our default configuration file and the guide in #1794.
I tried to address (1) in #1794, please review. For the moment not sure about (2), I'd be OK to skip that unless someone has a firm opinion that it's confusing.
The release is aimed for end of January. Would appreciate a review (#1794) or other suggestions. |
Crate
Summary of Bug
As you might have heard that Ethermint have changed their name to EVMOS, this might be causing an issue while I was trying to establish an IBC path locally between Gaia and Evmos as the Bech32 prefix for EVMOS is
evmos
. Following is the log for reference:Version
Version: v0.10.0
Steps to Reproduce
There needs to be a replacement of
ethermint
bech32 address prefix withevmos
Acceptance Criteria
For Admin Use
The text was updated successfully, but these errors were encountered: