Skip to content

Commit

Permalink
witness: fix contract creation init gas charging (#393)
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored and gballet committed May 8, 2024
1 parent a83a2b9 commit 858fafc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/state/access_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 858fafc

Please sign in to comment.