current position:Home>Solidity: what is the difference between 'view' and 'constant'?

Solidity: what is the difference between 'view' and 'constant'?

2022-02-03 20:47:23 Q & A of Denglian community

Solidity 0.4.16 Introduced view and constant Function modifiers . file In the said :

constant for functions:Same as view.

Does that mean view It's just constant Another name for ? If so , Why do we need it ?






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032047196625.html

Random recommended