You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/utils/Address.sol
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,9 @@ library Address {
66
66
* If `target` reverts with a revert reason, it is bubbled up by this
67
67
* function (like regular Solidity function calls).
68
68
*
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
+
*
69
72
* Requirements:
70
73
*
71
74
* - `target` must be a contract.
@@ -88,18 +91,13 @@ library Address {
88
91
}
89
92
90
93
/**
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`.
97
96
*
98
97
* Requirements:
99
98
*
100
-
* - `target` must be a contract.
101
99
* - 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`.
0 commit comments