mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Document revert()
This commit is contained in:
parent
f3158f92d6
commit
1fcad8b4ab
@ -2,6 +2,8 @@
|
||||
|
||||
Features:
|
||||
* Add ``assert(condition)``, which throws if condition is false.
|
||||
* Code generator: Support ``revert()`` to abort with rolling back, but not consuming all gas.
|
||||
* Inline assembly: Support ``revert`` (EIP140) as an opcode.
|
||||
* Type system: Support explicit conversion of external function to address.
|
||||
|
||||
Bugfixes:
|
||||
|
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user