Use different wording for assert

This commit is contained in:
Alex Beregszaszi 2017-02-10 21:41:40 +00:00
parent 8a3d4a0500
commit fd7ffedead
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
### 0.4.10 (unreleased)
Features:
* Add ``assert(condition)`` to abort execution.
* Add ``assert(condition)``, which throws if condition is false.
* Type system: Support explicit conversion of external function to address.
Bugfixes:

View File

@ -460,7 +460,7 @@ Global Variables
- ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: recover address associated with the public key from elliptic curve signature, return zero on error
- ``addmod(uint x, uint y, uint k) returns (uint)``: compute ``(x + y) % k`` where the addition is performed with arbitrary precision and does not wrap around at ``2**256``
- ``mulmod(uint x, uint y, uint k) returns (uint)``: compute ``(x * y) % k`` where the multiplication is performed with arbitrary precision and does not wrap around at ``2**256``
- ``assert(bool condition)``: throws if the condition is not met
- ``assert(bool condition)``: throws if the condition is false
- ``this`` (current contract's type): the current contract, explicitly convertible to ``address``
- ``super``: the contract one level higher in the inheritance hierarchy
- ``selfdestruct(address recipient)``: destroy the current contract, sending its funds to the given address