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 ...

Markdown supported · ⌘↵ to post
No responses yet.