Solidity: `view` 和 `constant` 有什么不同?

Solidity 0.4.16 引入了viewconstant函数修饰符。文档里说:

constant for functions:Same as view.

这是不是说view只是constant的别名?如果这样,我们为什么需要它?

请先 登录 后评论

1 个回答

会飞的猪
请先 登录 后评论
  • 1 关注
  • 0 收藏,3322 浏览
  • 张小风 提出于 2019-12-11 10:39