diff --git a/core/vm/evm.go b/core/vm/evm.go index 6cf8049b481..5123db9b467 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -34,7 +34,8 @@ import ( // deployed contract addresses (relevant after the account abstraction). var emptyCodeHash = crypto.Keccak256Hash(nil) -func (evm *EVM) precompile(addr libcommon.Address) (PrecompiledContract, bool) { +// GetPrecompile checks and returns the precomplied contract +func (evm *EVM) GetPrecompileContract(addr libcommon.Address) (PrecompiledContract, bool) { var precompiles map[libcommon.Address]PrecompiledContract switch { case evm.chainRules.IsCancun: @@ -160,7 +161,7 @@ func (evm *EVM) Interpreter() Interpreter { func (evm *EVM) call(typ OpCode, caller ContractRef, addr libcommon.Address, input []byte, gas uint64, value *uint256.Int, bailout bool) (ret []byte, leftOverGas uint64, err error) { depth := evm.interpreter.Depth() - p, isPrecompile := evm.precompile(addr) + p, isPrecompile := evm.GetPrecompileContract(addr) // Invoke tracer hooks that signal entering/exiting a call frame if evm.Config().Tracer != nil {