Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Next Next commit
chore: update system event variants
  • Loading branch information
ECJ222 committed Nov 20, 2021
commit 2e0a88f59e6b1252a7a9b71cd4d1d7279e3516e6
21 changes: 12 additions & 9 deletions xcm/xcm-simulator/example/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ mod tests {

ParaA::execute_with(|| {
use parachain::{Event, System};
assert!(System::events()
.iter()
.any(|r| matches!(r.event, Event::System(frame_system::Event::Remarked(_, _)))));
assert!(System::events().iter().any(|r| matches!(
r.event,
Event::System(frame_system::Event::Remarked { origin: _, remarked_hash: _ })
)));
});
}

Expand All @@ -163,9 +164,10 @@ mod tests {

Relay::execute_with(|| {
use relay_chain::{Event, System};
assert!(System::events()
.iter()
.any(|r| matches!(r.event, Event::System(frame_system::Event::Remarked(_, _)))));
assert!(System::events().iter().any(|r| matches!(
r.event,
Event::System(frame_system::Event::Remarked { origin: _, remarked_hash: _ })
)));
});
}

Expand All @@ -191,9 +193,10 @@ mod tests {

ParaB::execute_with(|| {
use parachain::{Event, System};
assert!(System::events()
.iter()
.any(|r| matches!(r.event, Event::System(frame_system::Event::Remarked(_, _)))));
assert!(System::events().iter().any(|r| matches!(
r.event,
Event::System(frame_system::Event::Remarked { origin: _, remarked_hash: _ })
)));
});
}

Expand Down