docs: added details for reverted calls.

This commit is contained in:
Richard Moore 2021-04-02 03:55:53 -04:00
parent 9e273220b6
commit ef5a2b4baa
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -120,6 +120,13 @@ number is used. Otherwise a [[BigNumber]] is returned.
For bytes (both fixed length and dynamic), a [[DataHexString]] is returned. For bytes (both fixed length and dynamic), a [[DataHexString]] is returned.
If the call reverts (or runs out of gas), a [CALL_EXCEPTION](errors--call-exception)
will be thrown which will include:
- ``error.address`` - the contract address
- ``error.args`` - the arguments passed into the method
- ``error.transaction`` - the transaction
The //overrides// object for a read-only method may include any of: The //overrides// object for a read-only method may include any of:
- ``overrides.from`` - the ``msg.sender`` (or ``CALLER``) to use during the - ``overrides.from`` - the ``msg.sender`` (or ``CALLER``) to use during the