mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'origin/develop' into HEAD
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@ You can interleave Solidity statements with inline assembly in a language close
|
||||
to the one of the Ethereum virtual machine. This gives you more fine-grained control,
|
||||
which is especially useful when you are enhancing the language by writing libraries.
|
||||
|
||||
The language used for inline assembly in Solidity is called `Yul <yul>`_
|
||||
The language used for inline assembly in Solidity is called :ref:`Yul <yul>`
|
||||
and it is documented in its own section. This section will only cover
|
||||
how the inline assembly code can interface with the surrounding Solidity code.
|
||||
|
||||
@@ -24,7 +24,7 @@ how the inline assembly code can interface with the surrounding Solidity code.
|
||||
|
||||
|
||||
An inline assembly block is marked by ``assembly { ... }``, where the code inside
|
||||
the curly braces is code in the `Yul <yul>`_ language.
|
||||
the curly braces is code in the :ref:`Yul <yul>` language.
|
||||
|
||||
The inline assembly code can access local Solidity variables as explained below.
|
||||
|
||||
|
||||
@@ -888,5 +888,9 @@
|
||||
"0.6.3": {
|
||||
"bugs": [],
|
||||
"released": "2020-02-18"
|
||||
},
|
||||
"0.6.4": {
|
||||
"bugs": [],
|
||||
"released": "2020-03-10"
|
||||
}
|
||||
}
|
||||
@@ -252,7 +252,7 @@ which only need to be created if there is a dispute.
|
||||
/// This complicated expression just tells you how the address
|
||||
/// can be pre-computed. It is just there for illustration.
|
||||
/// You actually only need ``new D{salt: salt}(arg)``.
|
||||
address predictedAddress = address(bytes20(keccak256(abi.encodePacked(
|
||||
address predictedAddress = address(uint(keccak256(abi.encodePacked(
|
||||
byte(0xff),
|
||||
address(this),
|
||||
salt,
|
||||
|
||||
@@ -547,6 +547,7 @@ not mean loss of proving power.
|
||||
|
||||
pragma solidity >=0.5.0;
|
||||
pragma experimental SMTChecker;
|
||||
// This may report a warning if no SMT solver available.
|
||||
|
||||
contract Recover
|
||||
{
|
||||
@@ -601,6 +602,7 @@ types.
|
||||
pragma solidity >=0.5.0;
|
||||
pragma experimental SMTChecker;
|
||||
// This will report a warning
|
||||
|
||||
contract Aliasing
|
||||
{
|
||||
uint[] array;
|
||||
|
||||
@@ -646,7 +646,7 @@ External (or public) functions have the following members:
|
||||
Example that shows how to use the members::
|
||||
|
||||
pragma solidity >=0.4.16 <0.8.0;
|
||||
|
||||
// This will report a warning
|
||||
|
||||
contract Example {
|
||||
function f() public payable returns (bytes4) {
|
||||
|
||||
Reference in New Issue
Block a user