Skip to content

Commit

Permalink
remove redundant call
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Sep 6, 2024
1 parent 7bf990b commit 0b9d42b
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 @@ -525,11 +525,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 !contract.UseGas(evm.Accesses.TouchFullAccount(address.Bytes()[:], true)) {
err = ErrCodeStoreOutOfGas
}

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

0 comments on commit 0b9d42b

Please sign in to comment.