From 0b9d42bfaeec40605eac57886bb56e1ad802b4ca Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:56:46 +0200 Subject: [PATCH] remove redundant call --- core/vm/evm.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/vm/evm.go b/core/vm/evm.go index 8f82376db0d7..29498e6d3c16 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -525,11 +525,6 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64, err = ErrCodeStoreOutOfGas } } else { - // Contract creation completed, touch the missing fields in the contract - if !contract.UseGas(evm.Accesses.TouchFullAccount(address.Bytes()[:], true)) { - err = ErrCodeStoreOutOfGas - } - if err == nil && len(ret) > 0 && !contract.UseGas(evm.Accesses.TouchCodeChunksRangeAndChargeGas(address.Bytes(), 0, uint64(len(ret)), uint64(len(ret)), true)) { err = ErrCodeStoreOutOfGas }