Skip to content

Commit b05eb91

Browse files
author
James Lockhart
committed
Made tutorial 15 compatible with the latest version of Solidity
1 parent b4e2731 commit b05eb91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorial-15/ExternalContract.sol

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

33
contract ExternalContract {
4-
function externalCall(string x) external returns (uint) {
4+
function externalCall(string calldata x) external returns (uint) {
55
return 123;
66
}
77

8-
function publicCall(string x) public returns (uint) {
8+
function publicCall(string memory x) public returns (uint) {
99
return 123;
1010
}
11-
}
11+
}

0 commit comments

Comments
 (0)