码迷,mamicode.com
首页 > 其他好文 > 详细

[Contract] Solidity 变量类型的默认值

时间:2020-02-26 17:15:31      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:存在   参考   https   als   bool   target   默认   nbsp   com   

 

变量的默认值一般都代表 “零值”。

比如 bool 就是 false,uint、int 就是 0,string 就是空字符串。

其它组合的参考 Solidity 判断 mapping 值的存在

 

Ref:https://solidity.readthedocs.io/en/v0.6.3/control-structures.html#default-value

Link:https://www.cnblogs.com/farwish/p/12367652.html

[Contract] Solidity 变量类型的默认值

标签:存在   参考   https   als   bool   target   默认   nbsp   com   

原文地址:https://www.cnblogs.com/farwish/p/12367652.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!