September 2019
Beginner to intermediate
540 pages
13h 3m
English
Functions can be declared as pure, view, or payable, depending on whether it can receive ether or if it needs to access the state. Some earlier versions of Solidity had a constant as the alias to view, but it was dropped in v0.5.0:
The state means anything EVM holds beyond the input parameters, including state variables, events, contracts, ether, and more. The following are considered as modifying the state:
Read now
Unlock full access