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
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,10 +263,11 @@ For a quick reference of all members of address, see :ref:`address_related`.
263
263
264
264
.. warning::
265
265
``transfer`` is deprecated and scheduled for removal.
266
-
Use the :ref:`call function <address_call_functions>` with an optionally provided maximum amount of
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.
266
+
Simple ether transfers can still be performed using the :ref:`call function <address_call_functions>`
267
+
with with an optionally provided maximum amount of gas and empty payload, i.e., ``call{value: <amount>}("")``.
268
+
By default this forwards all the remaining gas, subject to additional limits imposed by some EVM versions
269
+
(such as the `63/64th rule <https://eips.ethereum.org/EIPS/eip-150>`__ introduced by ``tangerineWhistle``).
270
+
As with any external call, the ``gas`` call option can be used to set a lower limit.
270
271
271
272
* ``send``
272
273
@@ -280,10 +281,11 @@ For a quick reference of all members of address, see :ref:`address_related`.
280
281
281
282
.. warning::
282
283
``send`` is deprecated and scheduled for removal.
283
-
Use the :ref:`call function <address_call_functions>` with an optionally provided maximum amount of
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.
284
+
Simple ether transfers can still be performed using the :ref:`call function <address_call_functions>`
285
+
with with an optionally provided maximum amount of gas and empty payload, i.e., ``call{value: <amount>}("")``.
286
+
By default this forwards all the remaining gas, subject to additional limits imposed by some EVM versions
287
+
(such as the `63/64th rule <https://eips.ethereum.org/EIPS/eip-150>`__ introduced by ``tangerineWhistle``).
288
+
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
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,13 +269,8 @@ 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
-
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.
272
+
``send()`` and ``transfer()`` are deprecated and scheduled for removal.
273
+
See the section on :ref:`address` for more information.
0 commit comments