Complete the code to declare a simple EVM bytecode sequence that stops execution.
bytecode = [[1]]The opcode 0x00 is the STOP instruction in EVM, which halts execution.
Complete the code to push the value 0x05 onto the EVM stack.
bytecode = [[1], 0x05]
The opcode 0x60 is PUSH1, which pushes the next 1 byte onto the stack.
Fix the error in the code to correctly add two numbers on the EVM stack.
bytecode = [0x60, 0x03, 0x60, 0x04, [1]]
The opcode 0x01 is ADD, which adds the top two stack values.
Fill both blanks to create bytecode that pushes 0x02 and 0x03, then multiplies them.
bytecode = [[1], 0x02, [2], 0x03, 0x02]
Both 0x60 opcodes push 1 byte values (0x02 and 0x03) onto the stack before multiplication.
Fill all three blanks to push 0x04 and 0x05, add them, then stop execution.
bytecode = [[1], 0x04, [2], 0x05, 0x01, [3]]
Use PUSH1 (0x60) twice to push 0x04 and 0x05, then ADD (0x01) to add them, and STOP (0x00) to end execution.