Skip to content

Commit a6ff7b0

Browse files
fixup! Update docs
1 parent ab4358c commit a6ff7b0

File tree

3 files changed

+35
-6
lines changed

3 files changed

+35
-6
lines changed

docs/090-breaking-changes.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
********************************
2+
Solidity v0.5.0 Breaking Changes
3+
********************************
4+
5+
This section highlights the main breaking changes introduced in Solidity
6+
version 0.9.0, along with the reasoning behind the changes and how to update
7+
affected code.
8+
For the full list check
9+
`the release changelog <https://github.com/argotorg/solidity/releases/tag/v0.9.0>`_.
10+
11+
Changes to the Syntax
12+
=================
13+
14+
* The ``send`` and ``transfer`` member functions of ``address`` are deprecated and will be removed.
15+
They should be replaced by the :ref:`call function <address_related>` with an optionally provided maximum amount
16+
of gas (default forwards all remaining gas) and an empty calldata parameter, e.g., ``call{value: amount}("")``.
17+
18+
* The ABI coder v1 is deprecated and will be removed.
19+
The old behavior will not be available anymore and using ``pragma abicoder v1;`` will result in a syntax error.
20+
21+
* ``virtual`` modifiers are deprecated and no longer available starting with v.0.9.0.
22+
23+
* The ``memory-safe-assembly`` special comment is deprecated and will be removed.
24+
For new code targeting recent compilers, prefer specifying the dialect string.
25+
26+
* Comparison of variables of contract type is deprecated and will not be allowed anymore starting with v.0.9.0.
27+
28+
29+

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)