diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-09 23:31:03 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-10 21:29:17 +0800 |
commit | 7f726de1cb861f4c7cb4e89e4ec56cd5712d0855 (patch) | |
tree | f03fc39d9b6d0b740a941d534d043063591446be /docs/units-and-global-variables.rst | |
parent | 8429c03f2ab81ad5fe077df6f69f6dbe88609779 (diff) | |
download | dexon-solidity-7f726de1cb861f4c7cb4e89e4ec56cd5712d0855.tar.gz dexon-solidity-7f726de1cb861f4c7cb4e89e4ec56cd5712d0855.tar.zst dexon-solidity-7f726de1cb861f4c7cb4e89e4ec56cd5712d0855.zip |
Document assert()
Diffstat (limited to 'docs/units-and-global-variables.rst')
-rw-r--r-- | docs/units-and-global-variables.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/units-and-global-variables.rst b/docs/units-and-global-variables.rst index dd3d4be8..a6f6613f 100644 --- a/docs/units-and-global-variables.rst +++ b/docs/units-and-global-variables.rst @@ -79,11 +79,13 @@ Block and Transaction Properties You can only access the hashes of the most recent 256 blocks, all other values will be zero. -.. index:: keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send +.. index:: assert, keccak256, ripemd160, sha256, ecrecover, addmod, mulmod, cryptography, this, super, selfdestruct, balance, send Mathematical and Cryptographic Functions ---------------------------------------- +``assert(bool condition)``: + throws if the condition is not met. ``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)``: |