A trait for emitting Starknet events.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
A trait for emitting Starknet events.Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
pub trait EventEmitter
#[derive(Drop, starknet::Event)]
pub struct NewOwner {
pub new_owner: ContractAddress,
}
fn emit_event(ref self: ContractState, new_owner: ContractAddress) {
self.emit(NewOwner { new_owner });
}
fn emit>(ref self: T, event: S)
Was this page helpful?