Closed onikonychev closed 2 months ago
The recent changes (#1967) in the Nibiru project enhance the EVM module by introducing the ability to export genesis data. This allows for the creation of EVM contracts and fungible token mappings based on the genesis state. The ExportGenesis
function has been updated to accommodate these enhancements, with corresponding tests added to validate the functionality. Additionally, there are adjustments to transaction generation and improvements in state data iteration.
File(s) | Change Summary |
---|---|
CHANGELOG.md |
Added summary of the new genesis export functionality in the EVM module. |
x/evm/evmmodule/genesis.go , x/evm/evmmodule/genesis_test.go |
Introduced creation of EVM contracts and fungible token mappings from genesis state, with added test cases. |
x/evm/evmtest/tx.go |
Removed ChainID parameter from DeployContract function, affecting contract deployment behavior. |
x/evm/keeper/statedb.go |
Updated iteration method for storage, altering how keys and values are handled in the iteration loop. |
sequenceDiagram
participant User
participant EVMModule
participant GenesisState
participant ExportGenesis
User->>EVMModule: Initialize EVM Module
EVMModule->>GenesisState: Fetch genState.Accounts and genState.FuntokenMappings
GenesisState-->>EVMModule: Return Accounts and Token Mappings
EVMModule->>ExportGenesis: Populate genesisAccounts and funTokens
ExportGenesis-->>User: Return updated genesis state
In Nibiru’s realm, where code does shine,
Genesis whispers, "EVM, you're divine!"
From accounts and tokens, contracts arise,
Exporting genesis, under clear skies.
With tests and tweaks, the code aligns,
A crafted feature, where logic intertwines. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 74.41860%
with 11 lines
in your changes missing coverage. Please review.
Project coverage is 65.71%. Comparing base (
9ac9d70
) to head (9c74f61
).
Summary by CodeRabbit
New Features
Bug Fixes
ChainID
parameter in contract deployment tests.Tests
Refactor