【发布时间】:2019-04-26 02:51:36
【问题描述】:
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.
【问题讨论】:
标签: ethereum solidity smartcontracts