mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update pragmas.
This commit is contained in:
@@ -308,7 +308,7 @@ This will no longer compile with Solidity v0.5.0. However, you can define a comp
|
||||
|
||||
::
|
||||
|
||||
pragma solidity ^0.5.0;
|
||||
pragma solidity >=0.5.0 <0.7.0;
|
||||
interface OldContract {
|
||||
function someOldFunction(uint8 a) external;
|
||||
function anotherOldFunction() external returns (bool);
|
||||
@@ -325,7 +325,7 @@ Given the interface defined above, you can now easily use the already deployed p
|
||||
|
||||
::
|
||||
|
||||
pragma solidity ^0.5.0;
|
||||
pragma solidity >=0.5.0 <0.7.0;
|
||||
|
||||
interface OldContract {
|
||||
function someOldFunction(uint8 a) external;
|
||||
@@ -345,7 +345,7 @@ commandline compiler for linking):
|
||||
|
||||
::
|
||||
|
||||
pragma solidity ^0.5.0;
|
||||
pragma solidity >=0.5.0 <0.7.0;
|
||||
|
||||
library OldLibrary {
|
||||
function someFunction(uint8 a) public returns(bool);
|
||||
@@ -430,7 +430,7 @@ New version:
|
||||
|
||||
::
|
||||
|
||||
pragma solidity ^0.5.0;
|
||||
pragma solidity >=0.5.0 <0.7.0;
|
||||
|
||||
contract OtherContract {
|
||||
uint x;
|
||||
|
||||
Reference in New Issue
Block a user