mirror of https://github.com/status-im/EIPs.git
Swap the stack items for REVERT to be in line with RETURN
This commit is contained in:
parent
f1af1f393c
commit
729b590308
|
@ -24,7 +24,7 @@ Currently this is not possible. There are two practical ways to revert a transac
|
|||
|
||||
The `REVERT` instruction is introduced at `0xfd`. Execution is aborted and state changes are rolled back.
|
||||
|
||||
It expects two stack items, the top item is the `memory_length` followed by `memory_offset`. Both of these can equal to zero. The cost of the `REVERT` instruction equals to that of the `RETURN` instruction.
|
||||
It expects two stack items, the top item is the `memory_offset` followed by `memory_length`. Both of these can equal to zero. The cost of the `REVERT` instruction equals to that of the `RETURN` instruction.
|
||||
|
||||
In case there is not enough gas left to cover the cost of `REVERT` or there is a stack underflow, the effect of the `REVERT` instruction will equal to that of a regular out of gas exception.
|
||||
|
||||
|
|
Loading…
Reference in New Issue