Skip to content

Commit c7f3096

Browse files
author
James Lockhart
committed
Made tutorial 2 work with the latest version of Solidity
1 parent 3bbaab7 commit c7f3096

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorial-02/myfirstcontract.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.4.0;
1+
pragma solidity ^0.5.0;
22

33
interface Regulator {
44
function checkValue(uint amount) external returns (bool);
@@ -40,11 +40,11 @@ contract MyFirstContract is Bank(10) {
4040
string private name;
4141
uint private age;
4242

43-
function setName(string newName) public {
43+
function setName(string memory newName) public {
4444
name = newName;
4545
}
4646

47-
function getName() public view returns (string) {
47+
function getName() public view returns (string memory) {
4848
return name;
4949
}
5050

0 commit comments

Comments
 (0)