1、
function show() public view returns(string memory) {
return word;
}
这里的string后要添加memory
2、Warning: SPDX license identifier not provided in source file
需要在文件头添加声明License:// SPDX-License-Identifier: MIT
学习链接:
Solidity语言
https://zhuanlan.zhihu.com/p/497589204
智能合约(smart contract)技术的相关资料
https://github.com/Fankouzu/smart-contract
https://github.com/KevinJay/awesome-smart-contract
web3、solidity