mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update non-existant pragma 0.4.99 to 0.5.0
Use correct syntax for pragma Change pragma syntax One more change to pragma syntax
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.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.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.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
interface OldContract {
|
||||
function someOldFunction(uint8 a) external;
|
||||
@@ -345,7 +345,7 @@ commandline compiler for linking):
|
||||
|
||||
::
|
||||
|
||||
pragma solidity >0.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
library OldLibrary {
|
||||
function someFunction(uint8 a) public returns(bool);
|
||||
@@ -430,7 +430,7 @@ New version:
|
||||
|
||||
::
|
||||
|
||||
pragma solidity >0.4.99 <0.6.0;
|
||||
pragma solidity ^0.5.0;
|
||||
|
||||
contract OtherContract {
|
||||
uint x;
|
||||
|
||||
Reference in New Issue
Block a user