Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Sep 19, 2024
1 parent f29b148 commit 05e6092
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,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 !evm.Accesses.TouchFullAccount(address.Bytes()[:], true, contract.UseGas) {
err = ErrCodeStoreOutOfGas
}

if err == nil && len(ret) > 0 && !evm.Accesses.TouchCodeChunksRangeAndChargeGas(address.Bytes(), 0, uint64(len(ret)), uint64(len(ret)), true, contract.UseGas) {
err = ErrCodeStoreOutOfGas
}
Expand Down

0 comments on commit 05e6092

Please sign in to comment.