值类型
值类型大致分为一下几种
bool: true, false
uint: uint = uint256 [0,2**256-1], 对应还有 uint8, uint16 等
int: int = int256 ∈ [-2255, 2255-1], 对应还有 int8, int16 等 最小值: type(int).min 最大值: type(int).max
address: 0x 开头的地址(0x40), 无""
bytes32: 0x 开头的内容(0x64), 无""
默认值
bool: false
unit: 0
int: 0
address: 0x0000000000 0000000000 0000000000 0000000000 // 40 个 0
bytes32: 0x0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000 // 64 个 0
Last updated
Was this helpful?