@@ -429,9 +429,9 @@ mod test {
429
429
use crate :: EthereumChannel ;
430
430
use chrono:: { Duration , Utc } ;
431
431
use hex:: FromHex ;
432
- use primitives:: adapter:: KeystoreOptions ;
433
432
use primitives:: config:: configuration;
434
433
use primitives:: ChannelId ;
434
+ use primitives:: { adapter:: KeystoreOptions , targeting:: Rules } ;
435
435
use primitives:: { ChannelSpec , EventSubmission , SpecValidators , ValidatorDesc } ;
436
436
use std:: convert:: TryFrom ;
437
437
use web3:: types:: Address ;
@@ -651,13 +651,13 @@ mod test {
651
651
deposit_asset : eth_checksum:: checksum ( & format ! ( "{:?}" , token_contract. address( ) ) ) ,
652
652
deposit_amount : 2_000 . into ( ) ,
653
653
valid_until : Utc :: now ( ) + Duration :: days ( 2 ) ,
654
- targeting_rules : vec ! [ ] ,
654
+ targeting_rules : Rules :: new ( ) ,
655
655
spec : ChannelSpec {
656
656
title : None ,
657
657
validators : SpecValidators :: new ( leader_validator_desc, follower_validator_desc) ,
658
658
max_per_impression : 10 . into ( ) ,
659
659
min_per_impression : 10 . into ( ) ,
660
- targeting_rules : vec ! [ ] ,
660
+ targeting_rules : Rules :: new ( ) ,
661
661
event_submission : Some ( EventSubmission { allow : vec ! [ ] } ) ,
662
662
created : Utc :: now ( ) ,
663
663
active_from : None ,
0 commit comments