Update version pragma and use new constructor syntax in std/ contracts.

This commit is contained in:
Daniel Kirchner
2018-04-03 18:21:55 +02:00
committed by Alex Beregszaszi
parent c98464db06
commit f855c78a08
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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
View File
@@ -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;
}
}