Commit f39c7bce authored by Andrew Jones's avatar Andrew Jones


parent 3e348c38
Pipeline #100498 passed with stages
in 10 minutes and 7 seconds
......@@ -172,11 +172,16 @@ mod erc20 {
fn assert_transfer_event<I>(raw_events: I, transfer_index: usize, expected_value: u128)
I: IntoIterator<Item = env::test::EmittedEvent>
fn assert_transfer_event<I>(
raw_events: I,
transfer_index: usize,
expected_value: u128,
) where
I: IntoIterator<Item = env::test::EmittedEvent>,
let raw_event = raw_events.into_iter().nth(transfer_index)
let raw_event = raw_events
.expect(&format!("No event at index {}", transfer_index));
let event = <Event as scale::Decode>::decode(&mut &[..])
.expect("Invalid contract Event");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment