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
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,8 @@ Members of Addresses
242
242
243
243
For a quick reference of all members of address, see :ref:`address_related`.
244
244
245
+
.. _balance-transfer-address-members:
246
+
245
247
* ``balance`` and ``transfer``
246
248
247
249
It is possible to query the balance of an address using the property ``balance``
@@ -266,9 +268,15 @@ For a quick reference of all members of address, see :ref:`address_related`.
266
268
Simple ether transfers can still be performed using the :ref:`call function <address_call_functions>`
267
269
with with an optionally provided maximum amount of gas and empty payload, i.e., ``call{value: <amount>}("")``.
268
270
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``).
271
+
(such as the `63/64th rule <https://eips.ethereum.org/EIPS/eip-150>`_ introduced by ``tangerineWhistle``).
270
272
As with any external call, the ``gas`` call option can be used to set a lower limit.
271
273
274
+
While it is possible to recreate the functionality by explicitly setting the limit to the value of the stipend (2300 gas),
275
+
this value no longer holds its original meaning due to changing opcode costs.
276
+
It is recommended to use different means to protect against reentrancy.
277
+
278
+
.. _send-address-member:
279
+
272
280
* ``send``
273
281
274
282
``send`` is the low-level counterpart of ``transfer``. If the execution fails, the current contract will not stop with an exception, but ``send`` will return ``false``.
@@ -284,9 +292,13 @@ For a quick reference of all members of address, see :ref:`address_related`.
284
292
Simple ether transfers can still be performed using the :ref:`call function <address_call_functions>`
285
293
with with an optionally provided maximum amount of gas and empty payload, i.e., ``call{value: <amount>}("")``.
286
294
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``).
295
+
(such as the `63/64th rule <https://eips.ethereum.org/EIPS/eip-150>`_ introduced by ``tangerineWhistle``).
288
296
As with any external call, the ``gas`` call option can be used to set a lower limit.
289
297
298
+
While it is possible to recreate the functionality by explicitly setting the limit to the value of the stipend (2300 gas),
299
+
this value no longer holds its original meaning due to changing opcode costs.
300
+
It is recommended to use different means to protect against reentrancy.
0 commit comments