Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Mar 20, 2024
1 parent 395e20d commit b6e0b8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
30 changes: 11 additions & 19 deletions abigen-tests/tests/abigen_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ mod tests {
use std::fs;
use std::io::Read;

use pb::TransactionStatus::TransactionstatusExecuted;
use substreams_antelope::pb;
use substreams_antelope_abigen::Abigen;
use pb::TransactionStatus::TransactionstatusExecuted;

mod actions {
use substreams_antelope_abigen::decoder::decode;
Expand Down Expand Up @@ -194,10 +194,7 @@ mod tests {
&transfer_trace.action_traces[0]
),]
);
pretty_assertions::assert_eq!(
actions.len(),
1
);
pretty_assertions::assert_eq!(actions.len(), 1);
}

#[test]
Expand All @@ -216,10 +213,7 @@ mod tests {
&transfer_trace.action_traces[4]
),]
);
pretty_assertions::assert_eq!(
actions.len(),
1
);
pretty_assertions::assert_eq!(actions.len(), 1);
}

#[test]
Expand Down Expand Up @@ -259,16 +253,14 @@ mod tests {
let actions: Vec<_> = block.notifications::<actions::Transfer2>(&["tokencontract"]).collect();
pretty_assertions::assert_eq!(
actions,
vec![
(
actions::Transfer2 {
from: "acc1".into(),
to: "acc2".into(),
quantity: "1.0000 EOS".into(),
},
&transfer_trace.action_traces[5]
),
]
vec![(
actions::Transfer2 {
from: "acc1".into(),
to: "acc2".into(),
quantity: "1.0000 EOS".into(),
},
&transfer_trace.action_traces[5]
),]
);
}
}
1 change: 0 additions & 1 deletion core/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,4 @@ mod tests {
assert_eq!(executed_traces[0], produced_traces[0]);
assert_eq!(produced_traces.len(), 1);
}

}

0 comments on commit b6e0b8e

Please sign in to comment.