Function decode_event

Source
pub fn decode_event<T: SolEvent>(event: &Event) -> (usize, usize, Log<T>)
Expand description

Decode data attached to an Event

§Arguments

  • event - Simulation Event

§Panics

Panics if the data cannot be decoded for the given event