Skip to content

Commit a260c59

Browse files
fixup! Update docs
1 parent f0103e9 commit a260c59

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/assembly.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ of Solidity, you can use a special comment to annotate an assembly block as memo
384384
.. warning::
385385
The ``memory-safe-assembly`` special comment is deprecated and scheduled for
386386
removal in the next breaking version (0.9).
387-
For new code targeting recent compilers, prefer specifying the dialect string.
387+
For new code targeting recent compilers, prefer specifying the assembly block annotation.
388388

389389
Advanced Safe Use of Memory
390390
---------------------------

docs/contracts/functions.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,11 @@ will consume more gas than the 2300 gas stipend:
310310
- Calling an external function which consumes a large amount of gas
311311
- Sending Ether
312312

313+
.. warning::
314+
Note that ``send`` and ``transfer`` are deprecated and scheduled for removal in the next breaking version (0.9).
315+
You are encouraged to use the :ref:`call function <address_related>` with an optionally provided maximum
316+
amount of gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
317+
313318
.. warning::
314319
When Ether is sent directly to a contract (without a function call, i.e. sender uses ``send`` or ``transfer``)
315320
but the receiving contract does not define a receive Ether function or a payable fallback function,
@@ -319,11 +324,6 @@ will consume more gas than the 2300 gas stipend:
319324
not recommended, since the fallback is invoked and would not fail for interface confusions
320325
on the part of the sender).
321326

322-
.. warning::
323-
Note that ``send`` and ``transfer`` are deprecated and scheduled for removal in the next breaking version (0.9).
324-
You are encouraged to use the :ref:`call function <address_related>` with an optionally provided maximum
325-
amount of gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
326-
327327
.. warning::
328328
A contract without a receive Ether function can receive Ether as a
329329
recipient of a *coinbase transaction* (aka *miner block reward*)

0 commit comments

Comments
 (0)