Skip to content

Commit

Permalink
add subtract_fee_from_outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
thesn10 committed Dec 18, 2024
1 parent 11f9de9 commit c1d7dcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,12 @@ impl WalletClient {
v.into_iter().map(From::from).collect::<Vec<Value>>().into(),
)
}))
.chain(options.subtract_fee_from_outputs.map(|v| {
(
"subtract_fee_from_outputs",
v.into_iter().map(From::from).collect::<Vec<Value>>().into(),
)
}))
.chain(options.mixin.map(|v| ("mixin", v.into())))
.chain(options.ring_size.map(|v| ("ring_size", v.into())))
.chain(options.unlock_time.map(|v| ("unlock_time", v.into())))
Expand Down
1 change: 1 addition & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ pub struct SweepAllData {
pub struct TransferOptions {
pub account_index: Option<u32>,
pub subaddr_indices: Option<Vec<u32>>,
pub subtract_fee_from_outputs: Option<Vec<u32>>,
pub mixin: Option<u64>,
pub ring_size: Option<u64>,
pub unlock_time: Option<u64>,
Expand Down

0 comments on commit c1d7dcd

Please sign in to comment.