@@ -374,18 +374,18 @@ mod tests {
374
374
test_data:: filter_transactions_for_indices ( & [ 1 , 2 , 4 ] , & transactions) ;
375
375
let test_data = test_data:: build_test_data ( & transactions_to_prove, & transactions) ;
376
376
let prover = build_prover (
377
- |retriever_mock | {
377
+ |transaction_retriever_mock | {
378
378
let transaction_hashes_to_prove = test_data. transaction_hashes_to_prove . clone ( ) ;
379
379
let transactions_to_prove = transactions_to_prove. clone ( ) ;
380
- retriever_mock
380
+ transaction_retriever_mock
381
381
. expect_get_by_hashes ( )
382
382
. with ( eq ( transaction_hashes_to_prove) )
383
383
. return_once ( move |_| Ok ( transactions_to_prove) ) ;
384
384
385
385
let block_ranges_to_prove = test_data. block_ranges_to_prove . clone ( ) ;
386
386
let all_transactions_in_block_ranges_to_prove =
387
387
test_data. all_transactions_in_block_ranges_to_prove . clone ( ) ;
388
- retriever_mock
388
+ transaction_retriever_mock
389
389
. expect_get_by_block_ranges ( )
390
390
. with ( eq ( block_ranges_to_prove) )
391
391
. return_once ( move |_| Ok ( all_transactions_in_block_ranges_to_prove) ) ;
@@ -428,18 +428,18 @@ mod tests {
428
428
let mut test_data = test_data:: build_test_data ( & transactions_to_prove, & transactions) ;
429
429
test_data. transaction_hashes_to_prove = vec ! [ "tx-unknown-123" . to_string( ) ] ;
430
430
let prover = build_prover (
431
- |retriever_mock | {
431
+ |transaction_retriever_mock | {
432
432
let transaction_hashes_to_prove = test_data. transaction_hashes_to_prove . clone ( ) ;
433
433
let transactions_to_prove = transactions_to_prove. clone ( ) ;
434
- retriever_mock
434
+ transaction_retriever_mock
435
435
. expect_get_by_hashes ( )
436
436
. with ( eq ( transaction_hashes_to_prove) )
437
437
. return_once ( move |_| Ok ( transactions_to_prove) ) ;
438
438
439
439
let block_ranges_to_prove = test_data. block_ranges_to_prove . clone ( ) ;
440
440
let all_transactions_in_block_ranges_to_prove =
441
441
test_data. all_transactions_in_block_ranges_to_prove . clone ( ) ;
442
- retriever_mock
442
+ transaction_retriever_mock
443
443
. expect_get_by_block_ranges ( )
444
444
. with ( eq ( block_ranges_to_prove) )
445
445
. return_once ( move |_| Ok ( all_transactions_in_block_ranges_to_prove) ) ;
@@ -485,18 +485,18 @@ mod tests {
485
485
]
486
486
. concat ( ) ;
487
487
let prover = build_prover (
488
- |retriever_mock | {
488
+ |transaction_retriever_mock | {
489
489
let transaction_hashes_to_prove = test_data. transaction_hashes_to_prove . clone ( ) ;
490
490
let transactions_to_prove = transactions_to_prove. clone ( ) ;
491
- retriever_mock
491
+ transaction_retriever_mock
492
492
. expect_get_by_hashes ( )
493
493
. with ( eq ( transaction_hashes_to_prove) )
494
494
. return_once ( move |_| Ok ( transactions_to_prove) ) ;
495
495
496
496
let block_ranges_to_prove = test_data. block_ranges_to_prove . clone ( ) ;
497
497
let all_transactions_in_block_ranges_to_prove =
498
498
test_data. all_transactions_in_block_ranges_to_prove . clone ( ) ;
499
- retriever_mock
499
+ transaction_retriever_mock
500
500
. expect_get_by_block_ranges ( )
501
501
. with ( eq ( block_ranges_to_prove) )
502
502
. return_once ( move |_| Ok ( all_transactions_in_block_ranges_to_prove) ) ;
@@ -539,8 +539,8 @@ mod tests {
539
539
test_data:: filter_transactions_for_indices ( & [ 1 , 2 , 4 ] , & transactions) ;
540
540
let test_data = test_data:: build_test_data ( & transactions_to_prove, & transactions) ;
541
541
let prover = build_prover (
542
- |retriever_mock | {
543
- retriever_mock
542
+ |transaction_retriever_mock | {
543
+ transaction_retriever_mock
544
544
. expect_get_by_hashes ( )
545
545
. returning ( |_| Err ( anyhow ! ( "Error" ) ) ) ;
546
546
} ,
@@ -570,15 +570,15 @@ mod tests {
570
570
test_data:: filter_transactions_for_indices ( & [ 1 , 2 , 4 ] , & transactions) ;
571
571
let test_data = test_data:: build_test_data ( & transactions_to_prove, & transactions) ;
572
572
let prover = build_prover (
573
- |retriever_mock | {
573
+ |transaction_retriever_mock | {
574
574
let transactions_to_prove = transactions_to_prove. clone ( ) ;
575
- retriever_mock
575
+ transaction_retriever_mock
576
576
. expect_get_by_hashes ( )
577
577
. return_once ( move |_| Ok ( transactions_to_prove) ) ;
578
578
579
579
let all_transactions_in_block_ranges_to_prove =
580
580
test_data. all_transactions_in_block_ranges_to_prove . clone ( ) ;
581
- retriever_mock
581
+ transaction_retriever_mock
582
582
. expect_get_by_block_ranges ( )
583
583
. return_once ( move |_| Ok ( all_transactions_in_block_ranges_to_prove) ) ;
584
584
} ,
0 commit comments