mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update version pragma and use new constructor syntax in std/ contracts.
This commit is contained in:
committed by
Alex Beregszaszi
parent
c98464db06
commit
f855c78a08
@@ -1,4 +1,4 @@
|
||||
pragma solidity ^0.4.0;
|
||||
pragma solidity >0.4.21;
|
||||
|
||||
import "./Token.sol";
|
||||
|
||||
@@ -8,7 +8,7 @@ contract StandardToken is Token {
|
||||
mapping (address =>
|
||||
mapping (address => uint256)) m_allowance;
|
||||
|
||||
function StandardToken(address _initialOwner, uint256 _supply) public {
|
||||
constructor(address _initialOwner, uint256 _supply) public {
|
||||
supply = _supply;
|
||||
balance[_initialOwner] = _supply;
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
pragma solidity ^0.4.0;
|
||||
pragma solidity >0.4.21;
|
||||
|
||||
contract owned {
|
||||
address owner;
|
||||
@@ -9,7 +9,7 @@ contract owned {
|
||||
}
|
||||
}
|
||||
|
||||
function owned() public {
|
||||
constructor() public {
|
||||
owner = msg.sender;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user