diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index c7c174d7e2..97a71acd15 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -398,7 +398,7 @@ func (k *Keeper) ApplyMessageWithConfig(ctx sdk.Context, // The dirty states in `StateDB` is either committed or discarded after return if commit { - isEIP158 := cfg.ChainConfig.IsEIP158(evm.Context().BlockNumber) + isEIP158 := cfg.ChainConfig.IsEIP158(evm.Context.BlockNumber) if err := stateDB.Commit(isEIP158); err != nil { return nil, errorsmod.Wrap(err, "failed to commit stateDB") }