Skip to content

Commit

Permalink
docs: added note about pure/view for constant methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Dec 1, 2021
1 parent eb432aa commit 0403314
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs.wrm/api/contract/contract.wrm
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ describe the generic ways to interact with the properties added
at run-time during the **Contract** constructor.


_heading: Read-Only Methods (constant; i.e. view or pure) @<Contract--readonly>

A constant method is read-only and evaluates a small amount of EVM
code against the current blockchain state and can be computed by
asking a single node, which can return a result. It is therefore
free and does not require any ether, but **cannot make changes** to
the blockchain state..
_heading: Read-Only Methods (constant) @<Contract--readonly>

A constant method (denoted by ``pure`` or ``view`` in Solidity)
is read-only and evaluates a small amount of EVM code against the
current blockchain state and can be computed by asking a single
node, which can return a result. It is therefore free and does
not require any ether, but **cannot make changes** to the
blockchain state..

_property: contract.METHOD_NAME(...args [, overrides ]) => Promise<any> @<Contract-functionsCall>
The type of the result depends on the ABI. If the method returns a single
Expand Down

0 comments on commit 0403314

Please sign in to comment.