Changed pragma version and constructor syntax
This commit is contained in:
parent
0f4b49a822
commit
9d197dcbb3
|
@ -1,8 +1,10 @@
|
||||||
pragma solidity ^0.4.7;
|
pragma solidity ^0.4.23;
|
||||||
|
|
||||||
|
|
||||||
contract SimpleStorage {
|
contract SimpleStorage {
|
||||||
uint public storedData;
|
uint public storedData;
|
||||||
|
|
||||||
function SimpleStorage(uint initialValue) public {
|
constructor(uint initialValue) public {
|
||||||
storedData = initialValue;
|
storedData = initialValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue