@@ -1271,7 +1271,11 @@ extern "C" {
12711271#[ cfg( all( test, feature = "client" ) ) ]
12721272mod tests {
12731273 use nimiq_keys:: Address ;
1274- use nimiq_primitives:: { coin:: Coin , networks:: NetworkId , policy:: Policy } ;
1274+ use nimiq_primitives:: {
1275+ coin:: Coin ,
1276+ networks:: NetworkId :: UnitAlbatross ,
1277+ policy:: { Policy , TEST_POLICY } ,
1278+ } ;
12751279 use nimiq_transaction:: {
12761280 historic_transaction:: {
12771281 EquivocationEvent , HistoricTransaction , HistoricTransactionData , JailEvent ,
@@ -1285,7 +1289,7 @@ mod tests {
12851289
12861290 fn make_penalize_historic_tx ( ) -> HistoricTransaction {
12871291 HistoricTransaction {
1288- network_id : NetworkId :: UnitAlbatross ,
1292+ network_id : UnitAlbatross ,
12891293 block_number : 100 ,
12901294 block_time : 1000 ,
12911295 data : HistoricTransactionData :: Penalize ( PenalizeEvent {
@@ -1298,7 +1302,7 @@ mod tests {
12981302
12991303 fn make_jail_historic_tx ( ) -> HistoricTransaction {
13001304 HistoricTransaction {
1301- network_id : NetworkId :: UnitAlbatross ,
1305+ network_id : UnitAlbatross ,
13021306 block_number : 100 ,
13031307 block_time : 1000 ,
13041308 data : HistoricTransactionData :: Jail ( JailEvent {
@@ -1312,7 +1316,7 @@ mod tests {
13121316
13131317 fn make_equivocation_historic_tx ( ) -> HistoricTransaction {
13141318 HistoricTransaction {
1315- network_id : NetworkId :: UnitAlbatross ,
1319+ network_id : UnitAlbatross ,
13161320 block_number : 100 ,
13171321 block_time : 1000 ,
13181322 data : HistoricTransactionData :: Equivocation ( EquivocationEvent {
@@ -1331,15 +1335,15 @@ mod tests {
13311335 Coin :: from_u64_unchecked ( 100 ) ,
13321336 Coin :: from_u64_unchecked ( 0 ) ,
13331337 1 ,
1334- NetworkId :: UnitAlbatross ,
1338+ UnitAlbatross ,
13351339 ) ;
13361340 inner. flags = flags;
13371341 Transaction :: from ( inner)
13381342 }
13391343
13401344 #[ test]
13411345 fn penalize_inherent_does_not_panic_on_conversion ( ) {
1342- let _ = Policy :: get_or_init ( nimiq_primitives :: policy :: TEST_POLICY ) ;
1346+ let _ = Policy :: get_or_init ( TEST_POLICY ) ;
13431347 let hist_tx = make_penalize_historic_tx ( ) ;
13441348 let current_block = Policy :: genesis_block_number ( ) + 1 ;
13451349
@@ -1361,7 +1365,7 @@ mod tests {
13611365
13621366 #[ test]
13631367 fn jail_inherent_does_not_panic_on_conversion ( ) {
1364- let _ = Policy :: get_or_init ( nimiq_primitives :: policy :: TEST_POLICY ) ;
1368+ let _ = Policy :: get_or_init ( TEST_POLICY ) ;
13651369 let hist_tx = make_jail_historic_tx ( ) ;
13661370 let current_block = Policy :: genesis_block_number ( ) + 1 ;
13671371
@@ -1383,7 +1387,7 @@ mod tests {
13831387
13841388 #[ test]
13851389 fn equivocation_inherent_does_not_panic_on_conversion ( ) {
1386- let _ = Policy :: get_or_init ( nimiq_primitives :: policy :: TEST_POLICY ) ;
1390+ let _ = Policy :: get_or_init ( TEST_POLICY ) ;
13871391 let hist_tx = make_equivocation_historic_tx ( ) ;
13881392 let current_block = Policy :: genesis_block_number ( ) + 1 ;
13891393
0 commit comments