From f667365a5d08ca331ffa4db05ed6d3b90888b5fc Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 28 Feb 2024 09:41:16 -0300 Subject: [PATCH] witness: fix contract creation init gas charging (#393) Signed-off-by: Ignacio Hagopian --- core/state/access_witness.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/state/access_witness.go b/core/state/access_witness.go index 75cd85eeb892..696da15fd1ef 100644 --- a/core/state/access_witness.go +++ b/core/state/access_witness.go @@ -118,7 +118,6 @@ func (aw *AccessWitness) TouchAndChargeContractCreateInit(addr []byte, createSen var gas uint64 gas += aw.TouchAddressOnWriteAndComputeGas(addr, zeroTreeIndex, utils.VersionLeafKey) gas += aw.TouchAddressOnWriteAndComputeGas(addr, zeroTreeIndex, utils.NonceLeafKey) - gas += aw.TouchAddressOnWriteAndComputeGas(addr, zeroTreeIndex, utils.CodeKeccakLeafKey) if createSendsValue { gas += aw.TouchAddressOnWriteAndComputeGas(addr, zeroTreeIndex, utils.BalanceLeafKey) }