@@ -316,16 +316,13 @@ pub mod seed {
316
316
use axum:: { Extension , Json } ;
317
317
318
318
use adapter:: {
319
- ethereum:: {
320
- test_util:: { Erc20Token , Outpace } ,
321
- ChainTransport ,
322
- } ,
319
+ ethereum:: { test_util:: { Erc20Token , Outpace } , ChainTransport } ,
323
320
Dummy , Ethereum ,
324
321
} ;
325
322
use primitives:: {
326
323
sentry:: campaign_create:: CreateCampaign ,
327
324
spender:: Spendable ,
328
- test_util:: { ADVERTISER , ADVERTISER_2 , CAMPAIGNS , LEADER } ,
325
+ test_util:: { ADVERTISER , ADVERTISER_2 , CAMPAIGNS , LEADER , FOLLOWER } ,
329
326
unified_num:: FromWhole ,
330
327
BigNum , Campaign , ChainOf , Deposit , UnifiedNum , ValidatorId ,
331
328
} ;
@@ -423,48 +420,28 @@ pub mod seed {
423
420
let outpace_1337 = Outpace :: new ( & web3_chain_1337, campaign_1. chain . outpace ) ;
424
421
let web3_chain_1 = campaign_3. chain . init_web3 ( ) ?;
425
422
let token_1 = Erc20Token :: new ( & web3_chain_1, campaign_3. token . clone ( ) ) ;
426
- let outpace_1 = Outpace :: new ( & web3_chain_1, campaign_3 . chain . outpace ) ;
423
+ let outpace_1 = Outpace :: new ( & web3_chain_1, campaign_1 . chain . outpace ) ;
427
424
428
425
token_1337
429
- . set_balance (
430
- LEADER . to_bytes ( ) ,
431
- ADVERTISER . to_bytes ( ) ,
432
- & BigNum :: with_precision ( 3_000_000 , token_1337. info . precision . into ( ) ) ,
433
- )
426
+ . set_balance ( LEADER . to_bytes ( ) , ADVERTISER . to_bytes ( ) , & BigNum :: with_precision ( 3_000_000 , token_1337. info . precision . into ( ) ) )
434
427
. await
435
428
. expect ( "Failed to set balance" ) ;
436
429
outpace_1337
437
- . deposit (
438
- & campaign_1. context . channel ,
439
- ADVERTISER . to_bytes ( ) ,
440
- & BigNum :: with_precision ( 1_000_000 , token_1337. info . precision . into ( ) ) ,
441
- )
430
+ . deposit ( & campaign_1. context . channel , ADVERTISER . to_bytes ( ) , & BigNum :: with_precision ( 1_000_000 , token_1337. info . precision . into ( ) ) )
442
431
. await
443
432
. expect ( "Should deposit funds" ) ;
444
433
outpace_1337
445
- . deposit (
446
- & campaign_2. context . channel ,
447
- ADVERTISER . to_bytes ( ) ,
448
- & BigNum :: with_precision ( 1_000_000 , token_1337. info . precision . into ( ) ) ,
449
- )
434
+ . deposit ( & campaign_2. context . channel , ADVERTISER . to_bytes ( ) , & BigNum :: with_precision ( 1_000_000 , token_1337. info . precision . into ( ) ) )
450
435
. await
451
436
. expect ( "Should deposit funds" ) ;
452
437
453
438
token_1
454
- . set_balance (
455
- LEADER . to_bytes ( ) ,
456
- ADVERTISER_2 . to_bytes ( ) ,
457
- & BigNum :: with_precision ( 2_000_000 , token_1. info . precision . into ( ) ) ,
458
- )
439
+ . set_balance ( LEADER . to_bytes ( ) , ADVERTISER_2 . to_bytes ( ) , & BigNum :: with_precision ( 2_000_000 , token_1. info . precision . into ( ) ) )
459
440
. await
460
441
. expect ( "Failed to set balance" ) ;
461
442
462
443
outpace_1
463
- . deposit (
464
- & campaign_3. context . channel ,
465
- ADVERTISER_2 . to_bytes ( ) ,
466
- & BigNum :: with_precision ( 1_000_000 , token_1. info . precision . into ( ) ) ,
467
- )
444
+ . deposit ( & campaign_3. context . channel , ADVERTISER_2 . to_bytes ( ) , & BigNum :: with_precision ( 1_000_000 , token_1. info . precision . into ( ) ) )
468
445
. await
469
446
. expect ( "Should deposit funds" ) ;
470
447
0 commit comments