8.1 开发合约
- 开发HelloWorld合约
pragma solidity^0.4.23;
contract HelloWorld {
address public owner;
string public info;
constructor(address _owner) public {
owner = _owner;
}
function saySomething(string _str) public returns(string) {
info = _str;
return info;
}
}
- 使用remix测试和本地调试(也可选择使用catalyst)