Correct test.

This commit is contained in:
chriseth 2022-04-17 18:11:30 +02:00
parent af1e8dba30
commit 4ace0ed82c

View File

@ -4,7 +4,7 @@
let x := 0
for {} lt(x, y) { } {
// overflow check
if not(x) { revert(0, 0) }
if iszero(not(x)) { revert(0, 0) }
// different way to do overflow check
if lt(add(x, 1), x) { revert(0, 0) }
sum := calldataload(add(0x20, mul(x, 0x20)))