Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ExpectedEventTrait

Fully qualified path: openzeppelin_testing::events::ExpectedEventTrait

pub trait ExpectedEventTrait

Trait functions

new

Creates a new Event with empty keys and data arrays.

Fully qualified path: openzeppelin_testing::events::ExpectedEventTrait::new

fn new() -> Event

key

Serializes the given value and appends it to the keys array.

Fully qualified path: openzeppelin_testing::events::ExpectedEventTrait::key

fn key<T, +Serde<T>, +Drop<T>>(self: Event, value: T) -> Event

data

Serializes the given value and appends it to the data array.

Fully qualified path: openzeppelin_testing::events::ExpectedEventTrait::data

fn data<T, +Serde<T>, +Drop<T>>(self: Event, value: T) -> Event