Skip to content

Commit

Permalink
feat: provide default sign_options argument on Wallet::sign and Walle…
Browse files Browse the repository at this point in the history
…t::finalize_psbt
  • Loading branch information
thunderbiscuit committed Jan 15, 2025
1 parent 5ffdb91 commit 971f2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bdk-ffi/src/bdk.udl
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ interface Wallet {
/// signers will follow the options, but the "software signers" (WIF keys and `xprv`) defined
/// in this library will.
[Throws=SignerError]
boolean sign(Psbt psbt, SignOptions? sign_options);
boolean sign(Psbt psbt, optional SignOptions? sign_options = null);

/// Finalize a PSBT, i.e., for each input determine if sufficient data is available to pass
/// validation and construct the respective `scriptSig` or `scriptWitness`. Please refer to
Expand All @@ -644,7 +644,7 @@ interface Wallet {
///
/// The [`SignOptions`] can be used to tweak the behavior of the finalizer.
[Throws=SignerError]
boolean finalize_psbt(Psbt psbt, SignOptions? sign_options);
boolean finalize_psbt(Psbt psbt, optional SignOptions? sign_options = null);

/// Compute the `tx`'s sent and received [`Amount`]s.
///
Expand Down

0 comments on commit 971f2f1

Please sign in to comment.