Skip to content

Commit

Permalink
Update core/state/access_witness.go
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Ballet <[email protected]>
  • Loading branch information
jsign and gballet authored Sep 5, 2024
1 parent d3a6d46 commit dc807bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/access_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (aw *AccessWitness) TouchCodeChunksRangeAndChargeGas(contractAddr []byte, s
// reason that we do not need the last leaf is the account's code size
// is already in the AccessWitness so a stateless verifier can see that
// the code from the last leaf is not needed.
if size == 0 || startPC > codeLen {
if size == 0 || startPC >= codeLen {
return 0
}

Expand Down

0 comments on commit dc807bf

Please sign in to comment.