编辑器
solidity的几种数据结构的存储方式
1 | 1.storage 在合约中声明的变量是storage变量 |
数据结构
1 | struct:结构体 |
可访问性关键词:public internal
操作关键词:view pure
1 | function addInfo(string memory forInfo) pure internal returns (string memory){ |
payable关键词,可支付
通过合约进行转账的方式:
1 | // transfer |
By QuHou ; Published on 2025-04-01
solidity的几种数据结构的存储方式
1 | 1.storage 在合约中声明的变量是storage变量 |
数据结构
1 | struct:结构体 |
可访问性关键词:public internal
操作关键词:view pure
1 | function addInfo(string memory forInfo) pure internal returns (string memory){ |
payable关键词,可支付
通过合约进行转账的方式:
1 | // transfer |