Skip to content

Commit

Permalink
fix: read-touch the code size and Keccak of the origin (ethereum#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored Mar 6, 2023
1 parent 7ed2edb commit 2d5ce8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/types/access_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ func (aw *AccessWitness) TouchTxOriginAndComputeGas(originAddr []byte) uint64 {
ckkey[31] = utils.CodeKeccakLeafKey

gas += aw.TouchAddressOnReadAndComputeGas(versionkey)
gas += aw.TouchAddressOnReadAndComputeGas(cskey[:])
gas += aw.TouchAddressOnReadAndComputeGas(ckkey[:])
gas += aw.TouchAddressOnWriteAndComputeGas(noncekey[:])
gas += aw.TouchAddressOnWriteAndComputeGas(balancekey[:])

Expand Down

0 comments on commit 2d5ce8a

Please sign in to comment.