From 0665f09b9167fd789576e29ce568efd4d0261069 Mon Sep 17 00:00:00 2001 From: Denis Kolodin Date: Tue, 25 Apr 2023 16:38:15 +0200 Subject: [PATCH] fix: make the first output optional in the wallet --- base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs b/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs index 7db42c4f45..89bb7c794d 100644 --- a/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs +++ b/base_layer/wallet/src/utxo_scanner_service/utxo_scanner_task.rs @@ -481,7 +481,7 @@ where .into_iter() .map(|utxo| TransactionOutput::try_from(utxo).map_err(UtxoScannerError::ConversionError)) .collect::, _>>()?; - let first_output = Some(outputs[0].clone()); + let first_output = outputs.get(0).cloned(); total_scanned += outputs.len(); let start = Instant::now();