From cafa9b361e16a37981d45bf3031573c7bc48c5a0 Mon Sep 17 00:00:00 2001 From: akildemir Date: Mon, 2 Jan 2023 11:38:26 +0300 Subject: [PATCH] fix build errors --- coins/monero/tests/add_data.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/coins/monero/tests/add_data.rs b/coins/monero/tests/add_data.rs index ad26fd5b..a620a73d 100644 --- a/coins/monero/tests/add_data.rs +++ b/coins/monero/tests/add_data.rs @@ -15,7 +15,7 @@ test!( builder.add_payment(addr, 5); (builder.build().unwrap(), (arbitrary_data,)) }, - |_, tx: Transaction, mut scanner: Scanner, state: (Vec,)| async move { + |_, tx: Transaction, mut scanner: Scanner, data: (Vec,)| async move { let output = scanner.scan_transaction(&tx).not_locked().swap_remove(0); assert_eq!(output.commitment().amount, 5); assert_eq!(output.arbitrary_data()[0], data.0); @@ -38,7 +38,7 @@ test!( builder.add_payment(addr, 5); (builder.build().unwrap(), data) }, - |_, tx: Transaction, mut scanner: Scanner, state: (Vec,)| async move { + |_, tx: Transaction, mut scanner: Scanner, data: Vec| async move { let output = scanner.scan_transaction(&tx).not_locked().swap_remove(0); assert_eq!(output.commitment().amount, 5); assert_eq!(output.arbitrary_data(), vec![data; 5]); @@ -63,8 +63,7 @@ test!( builder.add_payment(addr, 5); (builder.build().unwrap(), data) }, - |rpc: Rpc, signed: Transaction, mut scanner: Scanner, data: Vec| async move { - let tx = rpc.get_transaction(signed.hash()).await.unwrap(); + |_, tx: Transaction, mut scanner: Scanner, data: Vec| async move { let output = scanner.scan_transaction(&tx).not_locked().swap_remove(0); assert_eq!(output.commitment().amount, 5); assert_eq!(output.arbitrary_data(), vec![data]);