Skip to content

Commit

Permalink
pass in recipients for zip317 fee calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
zancas committed Sep 4, 2023
1 parent 8bfc673 commit aedb62a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zingolib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ impl LightWallet {
orch_notes: &Vec<SpendableOrchardNote>,

Check failure on line 952 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

unused variable: `orch_notes`

Check failure on line 952 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do
sapling_notes: &Vec<SpendableSaplingNote>,

Check failure on line 953 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

unused variable: `sapling_notes`

Check failure on line 953 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do
utxos: &Vec<ReceivedTransparentOutput>,

Check failure on line 954 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

unused variable: `utxos`

Check failure on line 954 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do
recipients: &Vec<(address::RecipientAddress, Amount, Option<String>)>,

Check failure on line 955 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

unused variable: `recipients`

Check failure on line 955 in zingolib/src/wallet.rs

View workflow job for this annotation

GitHub Actions / Format check and clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do
) -> u64 {
todo!()
}
Expand Down Expand Up @@ -987,6 +988,7 @@ impl LightWallet {
&orchard_notes,
&sapling_notes,
&utxos,
recipients,
);
if value_to_cover + zip_317_fee <= value_covered {
// The selected notes covered the send amount plus fee.
Expand Down

0 comments on commit aedb62a

Please sign in to comment.