Module functions
Modules
Functions
- Restricts access to an external private or public function so that it can only be called by an authorized account.
- An external function is callable from outside the contract.
- An initializer function is where a contract initializes its state.
- An internal function is only callable from inside the contract.
- A no-init-check external function can be called even if none of the initializer functions have been called yet.
- A no-phase-check function will allow transitioning from the non-revertible to the revertible phase during its execution.
- Restricts an external function so that it can only be called by the contract itself.
- View functions cannot modify state in any way, including performing contract calls that would in turn modify state.