Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Jul 26, 2022
1 parent 4007bab commit 2581666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chain/tests/test_block_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ fn test_chain_filter_events() {
name: Identifier::from_str("NewBlockEvent").unwrap(),
type_params: vec![],
});

// Origin block event index is 4, after https://github.com/starcoinorg/starcoin-framework/pull/42 , Genesis account create more event_handles, so the block event index is 7.
// So we should use type_tags to filter event, do not dependent on event key.
// let evt_key = EventKey::new_from_address(&genesis_address(), 7);
{
let evt_key = EventKey::new_from_address(&genesis_address(), 7);
let event_filter = Filter {
from_block: 1,
to_block: 5,
Expand Down

0 comments on commit 2581666

Please sign in to comment.