From ef5a2b4baa89673dae2162d31b3708c6b104b58b Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 2 Apr 2021 03:55:53 -0400 Subject: [PATCH] docs: added details for reverted calls. --- docs.wrm/api/contract/contract.wrm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs.wrm/api/contract/contract.wrm b/docs.wrm/api/contract/contract.wrm index c8cec9dbf8..76acfdf17a 100644 --- a/docs.wrm/api/contract/contract.wrm +++ b/docs.wrm/api/contract/contract.wrm @@ -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