Bartu bozkurt

There are two types of reading functions;

View : Accessing state variables

Pure : Not accessing state variables

View Function

This is generally the replacement for constant. It indicates that the function will not alter the storage state in any way

Pure Functions

So, view functions are reading functions — what are pure functions?

Pure functions are functions that are not accessing any state variables. They can call other pure functions, but not view functions.

--

--