Clarification about value option for staticcall.

This commit is contained in:
hrkrshnn 2021-05-27 11:18:38 +02:00
parent 5672646bd7
commit b8d5d5744e

View File

@ -305,8 +305,8 @@ Since byzantium ``staticcall`` can be used as well. This is basically the same a
All three functions ``call``, ``delegatecall`` and ``staticcall`` are very low-level functions and should only be used as a *last resort* as they break the type-safety of Solidity. All three functions ``call``, ``delegatecall`` and ``staticcall`` are very low-level functions and should only be used as a *last resort* as they break the type-safety of Solidity.
The ``gas`` option is available on all three methods, while the ``value`` option is not The ``gas`` option is available on all three methods, while the ``value`` option is only available
supported for ``delegatecall``. on ``call``.
.. note:: .. note::
It is best to avoid relying on hardcoded gas values in your smart contract code, It is best to avoid relying on hardcoded gas values in your smart contract code,