Skip to content

Commit 86496ca

Browse files
committed
add usage about cast call
1 parent 7b8e289 commit 86496ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/interaction_basis.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ If you feel lazy to provide the ABI, you can interact with the contract using fu
101101
)
102102
80
103103
104+
More easily, if you have `Foundry <https://book.getfoundry.sh/>`_ installed, you can interact with contracts using ``cast`` (currently only supports simple ``cast call``):
105+
106+
.. code-block:: python
107+
108+
>>> conn.cast_call(
109+
contract_addr,
110+
"balanceOf(address)(uint)",
111+
account.address
112+
)
113+
'5000000000000000 [5e15]'
114+
104115
Deploying New Contracts
105116
~~~~~~~~~~~~~~~~~~~~~~~
106117

0 commit comments

Comments
 (0)