From e3b46da6d4e5ab060d270098afb7ae076267f69a Mon Sep 17 00:00:00 2001 From: fx0x55 <80245546+fx0x55@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:54:35 +0800 Subject: [PATCH] fix(x/evm): update genesis params to use FX denom --- x/evm/module.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/evm/module.go b/x/evm/module.go index 136c17c8..5ccb8ae5 100644 --- a/x/evm/module.go +++ b/x/evm/module.go @@ -40,7 +40,9 @@ type AppModuleBasic struct { // DefaultGenesis returns default genesis state as raw bytes for the evm // module. func (b AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { - return b.AppModuleBasic.DefaultGenesis(cdc) + state := evmtypes.DefaultGenesisState() + state.Params.EvmDenom = fxtypes.DefaultDenom + return cdc.MustMarshalJSON(state) } // ValidateGenesis is the validation check of the Genesis