evm-puzzles icon indicating copy to clipboard operation
evm-puzzles copied to clipboard

invalid reverts in puzzle 10

Open charles-cooper opened this issue 3 years ago • 1 comments

In https://github.com/fvictorio/evm-puzzles/blob/c98de5c51062648680cc55d6dac84bc6792b40dc/puzzles/puzzle_10.json#L2, there are several REVERT instructions, but since there aren't enough items on the stack, they don't actually revert, I think they trigger an exceptional halting state (same as 0xFE INVALID). For clarity, maybe these instructions should be changed to 0xFE - or start the code with MSIZE MSIZE so that the REVERT opcodes will have enough stack items to consume!

charles-cooper avatar Mar 06 '22 03:03 charles-cooper

Oops, you're right, I should've used 0xFE. I'll change that, thank you!

fvictorio avatar Mar 07 '22 11:03 fvictorio