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: docs/types/value-types.rst
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,7 +264,9 @@ For a quick reference of all members of address, see :ref:`address_related`.
264
264
.. warning::
265
265
``transfer`` is deprecated and scheduled for removal.
266
266
Use the :ref:`call function <address_call_functions>` with an optionally provided maximum amount of
267
-
gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
267
+
gas and an empty calldata parameter, e.g., ``call{value: amount}("")``.
268
+
By default forwards all remaining gas, subject to additional limits imposed by some EVM versions (such as the [63/64th rule](https://eips.ethereum.org/EIPS/eip-150) introduced by `tangerineWhistle`).
269
+
As with any external call, the `gas` call option can be used to set a lower limit.
268
270
269
271
* ``send``
270
272
@@ -279,7 +281,9 @@ For a quick reference of all members of address, see :ref:`address_related`.
279
281
.. warning::
280
282
``send`` is deprecated and scheduled for removal.
281
283
Use the :ref:`call function <address_call_functions>` with an optionally provided maximum amount of
282
-
gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
284
+
gas and an empty calldata parameter, e.g., ``call{value: amount}("")``.
285
+
By default forwards all remaining gas, subject to additional limits imposed by some EVM versions (such as the [63/64th rule](https://eips.ethereum.org/EIPS/eip-150) introduced by `tangerineWhistle`).
286
+
As with any external call, the `gas` call option can be used to set a lower limit.
Copy file name to clipboardExpand all lines: docs/units-and-global-variables.rst
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,19 +269,27 @@ Members of Address Types
269
269
send given amount of Wei to :ref:`address`, returns ``false`` on failure, forwards 2300 gas stipend, not adjustable
270
270
271
271
.. warning::
272
-
``send`` and ``transfer`` are deprecated and scheduled for removal.
273
-
Use the :ref:`call function <address_call_functions>` with an optionally provided maximum amount of
274
-
gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
272
+
`send()` and `transfer()` are deprecated and scheduled for removal.
273
+
Simple ether transfers can still be performed using the [`call()`](...) function with empty payload, i.e., `call{value: <amount>}("")`.
274
+
By default this forwards all the remaining gas, subject to additional limits imposed by some EVM versions (such as the [63/64th rule](https://eips.ethereum.org/EIPS/eip-150) introduced by `tangerineWhistle`).
275
+
As with any external call, the `gas` call option can be used to set a lower limit.
276
+
277
+
While it is possible to recreate the functionality by explicitly setting the limit to the value of the stipend (2300 gas), this value no longer holds its original meaning due to changing opcode costs.
278
+
It is recommended to use different means to protect against reentrancy.
0 commit comments