Skip to content

Commit

Permalink
f final reordering of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Aug 8, 2024
1 parent 627bc84 commit 97e6216
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bindings/ldk_node.udl
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ interface Bolt12Payment {
[Throws=NodeError]
PaymentId send([ByRef]Offer offer, u64? quantity, string? payer_note);
[Throws=NodeError]
PaymentId send_using_amount([ByRef]Offer offer, u64 amount_msat, string? payer_note, u64? quantity);
PaymentId send_using_amount([ByRef]Offer offer, u64 amount_msat, u64? quantity, string? payer_note);
[Throws=NodeError]
Offer receive(u64 amount_msat, [ByRef]string description);
[Throws=NodeError]
Offer receive_variable_amount([ByRef]string description);
[Throws=NodeError]
Bolt12Invoice request_refund_payment([ByRef]Refund refund);
[Throws=NodeError]
Refund initiate_refund(u64 amount_msat, u32 expiry_secs, string? payer_note, u64? quantity);
Refund initiate_refund(u64 amount_msat, u32 expiry_secs, u64? quantity, string? payer_note);
};

interface SpontaneousPayment {
Expand Down
6 changes: 3 additions & 3 deletions src/payment/bolt12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl Bolt12Payment {
/// If `payer_note` is `Some` it will be seen by the recipient and reflected back in the invoice
/// response.
pub fn send_using_amount(
&self, offer: &Offer, amount_msat: u64, payer_note: Option<String>, quantity: Option<u64>,
&self, offer: &Offer, amount_msat: u64, quantity: Option<u64>, payer_note: Option<String>,
) -> Result<PaymentId, Error> {
let rt_lock = self.runtime.read().unwrap();
if rt_lock.is_none() {
Expand Down Expand Up @@ -314,8 +314,8 @@ impl Bolt12Payment {

/// Returns a [`Refund`] object that can be used to offer a refund payment of the amount given.
pub fn initiate_refund(
&self, amount_msat: u64, expiry_secs: u32, payer_note: Option<String>,
quantity: Option<u64>,
&self, amount_msat: u64, expiry_secs: u32, quantity: Option<u64>,
payer_note: Option<String>,
) -> Result<Refund, Error> {
let mut random_bytes = [0u8; 32];
rand::thread_rng().fill_bytes(&mut random_bytes);
Expand Down

0 comments on commit 97e6216

Please sign in to comment.