Module functions
Modules
Functions
- An allow_phase_change function will allow transitioning from the non-revertible to the revertible phase during its execution.
- Restricts access to an
externalprivate 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
externalfunction can be called even if none of theinitializerfunctions have been called yet. - Restricts an
externalfunction 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.