mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Document revert()
This commit is contained in:
@@ -248,6 +248,8 @@ In the grammar, opcodes are represented as pre-defined identifiers.
|
||||
+-------------------------+------+-----------------------------------------------------------------+
|
||||
| return(p, s) | `-` | end execution, return data mem[p..(p+s)) |
|
||||
+-------------------------+------+-----------------------------------------------------------------+
|
||||
| revert(p, s) | `-` | end execution, revert state changes, return data mem[p..(p+s)) |
|
||||
+-------------------------+------+-----------------------------------------------------------------+
|
||||
| selfdestruct(a) | `-` | end execution, destroy current contract and send funds to a |
|
||||
+-------------------------+------+-----------------------------------------------------------------+
|
||||
| invalid | `-` | end execution with invalid instruction |
|
||||
|
||||
Reference in New Issue
Block a user