聊聊Solidity中的constant修饰符

前言 在《Solidity编译警告的解决之道》一文中聊到通过添加pure修饰来解决警告提示,这篇文章对此技术点进行进一步的拓展。 为什么使用constant 首先,我们要明白为什么用constant? Functions can be declared constant in which case they promise not to modify the state. 也就是说,当执行函数时不
相关文章
相关标签/搜索