Changed pragma version and constructor syntax

This commit is contained in:
Richard Ramos 2018-05-03 21:00:38 -04:00 committed by GitHub
parent 0f4b49a822
commit 9d197dcbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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;
} }