Skip to content

Confused with the Pure Function #144

Answered by crypte-1
MrMandu7 asked this question in Q&A
Discussion options

You must be logged in to vote

here is my take on it

Pure and view functions are special functions in solidity

  1. Pure function : Does not modify values of state variables and not even read state variable values
  2. View function : Does not modify values of state variables , But reads state variables

pure and view functions both are free if the call was from outside of the blockchain

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PatrickAlphaC
Comment options

Answer selected by PatrickAlphaC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants