Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ERC20HooksTrait

Fully qualified path: openzeppelin_token::erc20::erc20::ERC20Component::ERC20HooksTrait

pub trait ERC20HooksTrait<TContractState>

Trait functions

before_update

Fully qualified path: openzeppelin_token::erc20::erc20::ERC20Component::ERC20HooksTrait::before_update

fn before_update(
    ref self: ComponentState<TContractState>,
    from: ContractAddress,
    recipient: ContractAddress,
    amount: u256,
)

after_update

Fully qualified path: openzeppelin_token::erc20::erc20::ERC20Component::ERC20HooksTrait::after_update

fn after_update(
    ref self: ComponentState<TContractState>,
    from: ContractAddress,
    recipient: ContractAddress,
    amount: u256,
)