Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

InternalTrait

Fully qualified path: openzeppelin_token::erc721::erc721_receiver::ERC721ReceiverComponent::InternalTrait

pub trait InternalTrait<
    TContractState,
    +HasComponent<TContractState>,
    impl SRC5: HasComponent<TContractState>,
    +Drop<TContractState>,
>

Trait functions

initializer

Initializes the contract by registering the IERC721Receiver interface ID. This should be used inside the contract’s constructor.

Fully qualified path: openzeppelin_token::erc721::erc721_receiver::ERC721ReceiverComponent::InternalTrait::initializer

fn initializer(ref self: ComponentState<TContractState>)