From b8d5d5744e16d09520e1cb765a61279df0f8d37e Mon Sep 17 00:00:00 2001 From: hrkrshnn Date: Thu, 27 May 2021 11:18:38 +0200 Subject: [PATCH] Clarification about value option for staticcall. --- docs/types/value-types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/types/value-types.rst b/docs/types/value-types.rst index ee94ed60a..4b6694f0d 100644 --- a/docs/types/value-types.rst +++ b/docs/types/value-types.rst @@ -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. -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,