crypto-org-chain / crypto-org-chain/cronos
Problem: exported genesis state files couldn't init a new chain. code hash mismatch
Open
- Dominant language
- Go
- Stars
- 336
- Forks
- 299
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 4
Description
**Describe the bug**
Testing with v0.7.0 archive inode
The exported genesis state has panic when starting a chain calling `InitGenesus`, got `panic("code don't match codeHash")`
it might relate to the ethermint recent patch [PR](https://github.com/evmos/ethermint/pull/1234). The code has been deleted in the evm code storage but the account codehash in the account keeper didn't change.
**Solution**
Suggestion by @yihuang
offline migration script to correct the evm account state
**Additional context**
also relate: https://github.com/crypto-org-chain/cronos/issues/635
Contributor guide
Assessment
This issue has not been assessed yet.