Skip to content

Commit 02a6b05

Browse files
committed
Update functionCall docs
(cherry picked from commit 242400e)
1 parent 8c1daaa commit 02a6b05

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

contracts/utils/Address.sol

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ library Address {
6666
* If `target` reverts with a revert reason, it is bubbled up by this
6767
* function (like regular Solidity function calls).
6868
*
69+
* Returns the raw returned data. To convert to the expected return value,
70+
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
71+
*
6972
* Requirements:
7073
*
7174
* - `target` must be a contract.
@@ -88,18 +91,13 @@ library Address {
8891
}
8992

9093
/**
91-
* @dev Performs a Solidity function call using a low level `call`,
92-
* transferring `value` wei. A plain`call` is an unsafe replacement for a
93-
* function call: use this function instead.
94-
*
95-
* If `target` reverts with a revert reason, it is bubbled up by this
96-
* function (like regular Solidity function calls).
94+
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
95+
* but also transferring `value` wei to `target`.
9796
*
9897
* Requirements:
9998
*
100-
* - `target` must be a contract.
10199
* - the calling contract must have an ETH balance of at least `value`.
102-
* - calling `target` with `data` must not revert.
100+
* - the called Solidity function must be `payable`.
103101
*
104102
* _Available since v3.1._
105103
*/

0 commit comments

Comments
 (0)