InternalTrait
Fully qualified path: openzeppelin_utils::cryptography::nonces::NoncesComponent::InternalTrait
pub trait InternalTrait<TContractState, +HasComponent<TContractState>>
Trait functions
use_nonce
Consumes a nonce, returns the current value, and increments nonce.
Fully qualified path: openzeppelin_utils::cryptography::nonces::NoncesComponent::InternalTrait::use_nonce
fn use_nonce(ref self: ComponentState<TContractState>, owner: ContractAddress) -> felt252
use_checked_nonce
Same as use_nonce but checking that nonce is the next valid one for owner.
Fully qualified path: openzeppelin_utils::cryptography::nonces::NoncesComponent::InternalTrait::use_checked_nonce
fn use_checked_nonce(
ref self: ComponentState<TContractState>, owner: ContractAddress, nonce: felt252,
) -> felt252