Solidity: View and Pure Functions
Getter functions can be declared view or pure.
View function declares that no state will be changed.
Pure function declares that no state variable will be changed or read.
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
contract ViewAndPure ...
blog.michaeltech.xyz1 min read