Skip to content

Commit

Permalink
docs: added details for reverted calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 2, 2021
1 parent 9e27322 commit ef5a2b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs.wrm/api/contract/contract.wrm
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ number is used. Otherwise a [[BigNumber]] 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:

- ``overrides.from`` - the ``msg.sender`` (or ``CALLER``) to use during the
Expand Down

0 comments on commit ef5a2b4

Please sign in to comment.