-
CALLVALUE (34)
:- This opcode pushes the value of Ether (in wei) sent with the transaction onto the stack.
-
JUMP (56)
:- This opcode alters the program counter to the location specified by the top stack item. In this case, it will jump to the byte location equal to the transaction value.
-
REVERT (FD)
(multiple instances):- These opcodes will revert the transaction if reached.
-
JUMPDEST (5B)
at08
:- This opcode marks a valid destination for a jump.
-
STOP (00)
at09
:- This opcode halts execution.
- The execution must jump to the
JUMPDEST
at08
and not hit anyREVERT
opcodes. - This means the transaction value, which is pushed onto the stack by
CALLVALUE
, must be such that theJUMP
opcode jumps directly to theJUMPDEST
at08
.
- The value to send with the transaction should be
08
(in hexadecimal), which is8
in decimal. - Sending a transaction with a value of
8
wei will cause theJUMP
at01
to go to theJUMPDEST
at08
, avoiding allREVERT
opcodes and successfully halting atSTOP
.
Therefore, you should enter a value of 8
wei to solve this puzzle.