如何在 Solidity 编译器版本 0.5.0 中返回字符串?
我收到了错误信息:
contract Test {
string public text = 'show me';
function test() public view returns (string) {
return text;
}
}
我收到了错误信息:
TypeError: Data location must be "memory" for return parameter in function, but none was given.