From 26c38ccd8ab35aab4bd427216015d822827d3cf0 Mon Sep 17 00:00:00 2001 From: drklee3 Date: Mon, 29 Apr 2024 15:06:37 -0700 Subject: [PATCH] fix: Resolve BlockContext usage after rebase --- x/evm/keeper/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }