From 9d197dcbb3b7474c5c58df6815cf448077424546 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 3 May 2018 21:00:38 -0400 Subject: [PATCH] Changed pragma version and constructor syntax --- templates/demo/contracts/simple_storage.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/demo/contracts/simple_storage.sol b/templates/demo/contracts/simple_storage.sol index 955ad8994..f38decf87 100644 --- a/templates/demo/contracts/simple_storage.sol +++ b/templates/demo/contracts/simple_storage.sol @@ -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; }