crypto-org-chain / crypto-org-chain/cronos

Problem: exported genesis state files couldn't init a new chain. code hash mismatch

Open
#646 3 comments 0 reactions 1 assignee Claimed by @JayT106 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.