Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

InternalTrait

Fully qualified path: openzeppelin_security::initializable::InitializableComponent::InternalTrait

pub trait InternalTrait<TContractState, +HasComponent<TContractState>>

Trait functions

initialize

Ensures that the calling function can only be called once.

Requirements:

  • initialize was not previously called.

Fully qualified path: openzeppelin_security::initializable::InitializableComponent::InternalTrait::initialize

fn initialize(ref self: ComponentState<TContractState>)