From d05aeb933f752d55c5eeaf57f4ddc8679dd109dd Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Tue, 30 Apr 2024 13:40:53 -0700 Subject: [PATCH] remove errors --- crates/view/src/planner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/view/src/planner.rs b/crates/view/src/planner.rs index af3f15fcd5..f447182d87 100644 --- a/crates/view/src/planner.rs +++ b/crates/view/src/planner.rs @@ -156,7 +156,7 @@ impl Planner { for value in self.calculate_balance().provided() { self.change_outputs.insert( value.asset_id, - OutputPlan::new(&mut OsRng, value, change_address), + OutputPlan::new(&mut OsRng, value, change_address.clone()), ); } @@ -976,7 +976,7 @@ impl Planner { /// TODO: is this neccessary? while let Some(required) = self.calculate_balance().provided().next() { // Recompute the change outputs, without accounting for fees. - self.refresh_change(change_address); + self.refresh_change(change_address.clone()); // Now re-estimate the fee of the updated transaction and adjust the change if possible. fee = self.fee_estimate(&self.gas_prices, &self.fee_tier); @@ -1120,7 +1120,7 @@ impl Planner { // self.push(SpendPlan::new(&mut OsRng, note_fee[0].clone().note, note_fee[0].clone().position).into()); // Recompute the change outputs, without accounting for fees. - self.refresh_change(change_address); + self.refresh_change(change_address.clone()); // Now re-estimate the fee of the updated transaction and adjust the change if possible. fee = self.fee_estimate(&self.gas_prices, &self.fee_tier);