diff --git a/components/chainhook-sdk/src/chainhooks/tests/mod.rs b/components/chainhook-sdk/src/chainhooks/tests/mod.rs index df0f2af06..09171bce2 100644 --- a/components/chainhook-sdk/src/chainhooks/tests/mod.rs +++ b/components/chainhook-sdk/src/chainhooks/tests/mod.rs @@ -1,8 +1,11 @@ -use chainhook_types::{StacksChainEvent, StacksChainUpdatedWithBlocksData, StacksBlockUpdate}; +use super::{ + stacks::evaluate_stacks_chainhooks_on_chain_event, + types::{StacksChainhookSpecification, StacksPrintEventBasedPredicate}, +}; +use crate::chainhooks::types::{HookAction, StacksPredicate}; use crate::utils::Context; use chainhook_types::StacksNetwork; -use crate::chainhooks::types::{StacksPredicate, HookAction}; -use super::{stacks::evaluate_stacks_chainhooks_on_chain_event, types::{StacksChainhookSpecification, StacksPrintEventBasedPredicate}}; +use chainhook_types::{StacksBlockUpdate, StacksChainEvent, StacksChainUpdatedWithBlocksData}; pub mod fixtures; @@ -15,7 +18,7 @@ fn test_stacks_predicate_print_event() { parent_microblocks_to_apply: vec![], parent_microblocks_to_rollback: vec![], }], - confirmed_blocks: vec![] + confirmed_blocks: vec![], }); // Prepare predicate @@ -42,6 +45,7 @@ fn test_stacks_predicate_print_event() { }; let predicates = vec![&print_predicate]; - let (triggered, _blocks) = evaluate_stacks_chainhooks_on_chain_event(&event, predicates, &Context::empty()); + let (triggered, _blocks) = + evaluate_stacks_chainhooks_on_chain_event(&event, predicates, &Context::empty()); assert_eq!(triggered.len(), 1); -} \ No newline at end of file +}