InternalTrait
Fully qualified path: starkware_utils::components::nonce::nonce::NonceComponent::InternalTrait
pub trait InternalTrait<TContractState, +HasComponent<TContractState>>
Trait functions
use_next_nonce
Consumes a nonce, returns the current value, and increments nonce.
Fully qualified path: starkware_utils::components::nonce::nonce::NonceComponent::InternalTrait::use_next_nonce
fn use_next_nonce(ref self: ComponentState<TContractState>) -> u64
use_checked_nonce
Consumes a nonce, returns the current value, and increments nonce. Panics if the nonce is not the expected value.
Fully qualified path: starkware_utils::components::nonce::nonce::NonceComponent::InternalTrait::use_checked_nonce
fn use_checked_nonce(ref self: ComponentState<TContractState>, nonce: u64) -> u64