From ab35274531b58dc5c32efeb1e2c0edad95064405 Mon Sep 17 00:00:00 2001 From: James Lockhart Date: Thu, 24 Oct 2019 19:45:51 +0100 Subject: [PATCH] Made tutorial 1 work for the latest version of Solidity --- tutorial-01/myfirstcontract.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial-01/myfirstcontract.sol b/tutorial-01/myfirstcontract.sol index b921078..a2ae8b4 100644 --- a/tutorial-01/myfirstcontract.sol +++ b/tutorial-01/myfirstcontract.sol @@ -1,14 +1,14 @@ -pragma solidity ^0.4.0; +pragma solidity ^0.5.0; contract MyFirstContract { string private name; uint private age; - function setName(string newName) public { + function setName(string memory newName) public { name = newName; } - function getName() public view returns (string) { + function getName() public view returns (string memory) { return name; }