Skip to content

Commit

Permalink
More nits
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 1, 2023
1 parent 73ecd7e commit c2d32cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sdk/src/wallet/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::{
},
};

/// Builder for the wallet inner.
/// Builder for the wallet.
#[derive(Debug, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct WalletBuilder<S: SecretManage = SecretManager> {
Expand Down
9 changes: 4 additions & 5 deletions sdk/src/wallet/operations/transaction/prepare_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,12 @@ where
}
}

let remainder_address = options.as_ref().map_or_else(
|| None,
|options| match &options.remainder_value_strategy {
let remainder_address = options
.as_ref()
.and_then(|options| match &options.remainder_value_strategy {
RemainderValueStrategy::ReuseAddress => None,
RemainderValueStrategy::CustomAddress(address) => Some(address.clone()),
},
);
});

let selected_transaction_data = self
.select_inputs(
Expand Down

0 comments on commit c2d32cf

Please sign in to comment.