Skip to content

Commit f0f46a1

Browse files
committed
Add v0.6.0 change notes for inline assembly opcode syntax changes.
1 parent 37597f9 commit f0f46a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/060-breaking-changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ For most of the topics the compiler will provide suggestions.
5353
If the name contains a dot, its prefix up to the dot may not conflict with any declaration outside the inline
5454
assembly block.
5555

56+
* In inline assembly, opcodes that do not take arguments are now represented as "built-in functions" instead of standalone identifiers. So ``gas`` is now ``gas()``.
57+
5658
* State variable shadowing is now disallowed. A derived contract can only
5759
declare a state variable ``x``, if there is no visible state variable with
5860
the same name in any of its bases.
@@ -174,3 +176,6 @@ This section gives detailed instructions on how to update prior code for every b
174176
``override`` to every overriding function. For multiple inheritance, add ``override(A, B, ..)``,
175177
where you list all contracts that define the overridden function in the parentheses. When
176178
multiple bases define the same function, the inheriting contract must override all conflicting functions.
179+
180+
* In inline assembly, add ``()`` to all opcodes that do not otherwise accept an argument.
181+
For example, change ``pc`` to ``pc()``, and ``gas`` to ``gas()``.

0 commit comments

Comments
 (0)