The difference between keyword contant Solidity syntax, view, pure of

With a constant, view, pure modified function, respectively:

  • constant: can only be read immutable state variables (variables is defined in the contract)
  •       view: can only be read immutable state variables, and constant as
  •       pure: can not read does not alter the state variables
Released five original articles · won praise 0 · Views 320

Guess you like

Origin blog.csdn.net/qq_29922685/article/details/103433373