Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Oct 23, 2024
1 parent d2e5de3 commit 5b01f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
} else {
consumed, wanted := evm.Accesses.TouchCodeChunksRangeAndChargeGas(address.Bytes(), 0, uint64(len(ret)), uint64(len(ret)), true, contract.Gas)
contract.UseGas(consumed) // consumed <= contract.Gas, so no return value check is needed
if err == nil && len(ret) > 0 && (consumed < wanted) {
if len(ret) > 0 && (consumed < wanted) {
err = ErrCodeStoreOutOfGas
}
}
Expand Down

0 comments on commit 5b01f99

Please sign in to comment.