From d99439b52ff88bed84f7ec471a02828569808d9f Mon Sep 17 00:00:00 2001 From: f321x Date: Fri, 12 Jul 2024 15:13:32 +0200 Subject: [PATCH] fix monitoring loop access of Bond vec --- taptrade-cli-demo/coordinator/src/wallet/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taptrade-cli-demo/coordinator/src/wallet/mod.rs b/taptrade-cli-demo/coordinator/src/wallet/mod.rs index 24cd8f6..1c6bee3 100644 --- a/taptrade-cli-demo/coordinator/src/wallet/mod.rs +++ b/taptrade-cli-demo/coordinator/src/wallet/mod.rs @@ -108,7 +108,7 @@ impl CoordinatorWallet { { let wallet = self.wallet.lock().await; - for bond in *bonds { + for bond in bonds.as_ref().iter() { let input_sum: u64; let tx: Transaction = deserialize(&hex::decode(&bond.bond_tx_hex)?)?;