From 53663bfb0a3f477fda71fff64b5737571ad693d4 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Sat, 20 Jan 2024 07:57:26 -0300 Subject: [PATCH] vm: fix access witness recording (#337) Signed-off-by: Ignacio Hagopian --- core/vm/evm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/evm.go b/core/vm/evm.go index a04258b0df22..7ad6c13c5daf 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -214,7 +214,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas if !isPrecompile && evm.chainRules.IsEIP158 && value.Sign() == 0 { if evm.chainRules.IsPrague { // proof of absence - tryConsumeGas(&gas, evm.Accesses.TouchAndChargeProofOfAbsence(caller.Address().Bytes())) + tryConsumeGas(&gas, evm.Accesses.TouchAndChargeProofOfAbsence(addr.Bytes())) } // Calling a non existing account, don't do anything, but ping the tracer if debug {