Skip to content

Commit

Permalink
fix extrinsic events example
Browse files Browse the repository at this point in the history
  • Loading branch information
haerdib committed Sep 11, 2024
1 parent 82b9632 commit 279800a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions examples/async/examples/check_extrinsic_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,12 @@ fn assert_associated_events_match_expected(events: Vec<RawEventDetails<Hash>>) {
assert_eq!(events[2].pallet_name(), "Balances");
assert_eq!(events[2].variant_name(), "Deposit");

assert_eq!(events[3].pallet_name(), "Treasury");
assert_eq!(events[3].pallet_name(), "Balances");
assert_eq!(events[3].variant_name(), "Deposit");

assert_eq!(events[4].pallet_name(), "Balances");
assert_eq!(events[4].variant_name(), "Deposit");
assert_eq!(events[4].pallet_name(), "TransactionPayment");
assert_eq!(events[4].variant_name(), "TransactionFeePaid");

assert_eq!(events[5].pallet_name(), "TransactionPayment");
assert_eq!(events[5].variant_name(), "TransactionFeePaid");

assert_eq!(events[6].pallet_name(), "System");
assert_eq!(events[6].variant_name(), "ExtrinsicSuccess");
assert_eq!(events[5].pallet_name(), "System");
assert_eq!(events[5].variant_name(), "ExtrinsicSuccess");
}

0 comments on commit 279800a

Please sign in to comment.