Merge pull request #395 from embark-framework/bug_fix/contract_constructor_warning_on_demo
Changed pragma version and constructor syntax
This commit is contained in:
commit
f6835cb461
|
@ -1,8 +1,10 @@
|
|||
pragma solidity ^0.4.7;
|
||||
pragma solidity ^0.4.23;
|
||||
|
||||
|
||||
contract SimpleStorage {
|
||||
uint public storedData;
|
||||
|
||||
function SimpleStorage(uint initialValue) public {
|
||||
constructor(uint initialValue) public {
|
||||
storedData = initialValue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue