reverts
Reverts & Errors
Handling failure gracefully.
When an error occurs or a requirement isn't met, the REVERT opcode stops execution and undoes all state changes made during the transaction. However, it allows returning a reason (error message) to the caller. Other error types like INVALID or Out-of-Gas also revert state but might consume all remaining gas.
Execution Simulation
Assistant Note
"Currently at PUSH instruction. It's going to place a value on top of the stack."
Program
14 bytesStack
LIFO0 / 1024
Memory
0 bytes00-0708-1516-2324-31
Gas Meter
Consumed0 / 1,000,000
Last Op Cost
-0
Refund
0
* Gas prevents infinite loops and DDoS. SSTORE is the most expensive opcode (20,000 gas for new slots).