Merge pull request #11448 from ethereum/docs-staticcall-value

[DOCS] Clarification about value option for staticcall.
This commit is contained in:
Harikrishnan Mulackal
2021-05-27 17:52:21 +02:00
committed by GitHub
+2 -2
View File
@@ -312,8 +312,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.
The ``gas`` option is available on all three methods, while the ``value`` option is not
supported for ``delegatecall``.
The ``gas`` option is available on all three methods, while the ``value`` option is only available
on ``call``.
.. note::
It is best to avoid relying on hardcoded gas values in your smart contract code,