Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IsEmitted

Fully qualified path: snforge_std::cheatcodes::events::IsEmitted

pub trait IsEmitted<T, impl Event<T>: Event<T>+Drop<T>>

Trait functions

is_emitted

Fully qualified path: snforge_std::cheatcodes::events::IsEmitted::is_emitted

fn is_emitted<T, +starknet::Event<T>, +Drop<T>, T, +starknet::Event<T>, +Drop<T>>(
    self: Events, expected_emitted_by: ContractAddress, expected_event: @T,
) -> bool