View & Pure Functions
Functions that do not write anything to blockchain can be declared as view
or pure
.
What's the difference between view
and pure
?
view
and pure
?view
functions can read state and global variables.
pure
functions cannot read neither state nor global variables.
Last updated
Was this helpful?