Newer
Older
pub(crate) fn staking_events() -> Vec<Event<Test>> {
System::events().into_iter().map(|r| r.event).filter_map(|e| {
if let MetaEvent::staking(inner) = e {
Some(inner)
} else {
None
}
}).collect()
}
pub(crate) fn staking_events() -> Vec<Event<Test>> {
System::events().into_iter().map(|r| r.event).filter_map(|e| {
if let MetaEvent::staking(inner) = e {
Some(inner)
} else {
None
}
}).collect()
}