Skip to content

Commit 3a82198

Browse files
committed
f final reordering of arguments
1 parent d478802 commit 3a82198

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bindings/ldk_node.udl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ interface Bolt12Payment {
122122
[Throws=NodeError]
123123
PaymentId send([ByRef]Offer offer, u64? quantity, string? payer_note);
124124
[Throws=NodeError]
125-
PaymentId send_using_amount([ByRef]Offer offer, u64 amount_msat, string? payer_note, u64? quantity);
125+
PaymentId send_using_amount([ByRef]Offer offer, u64 amount_msat, u64? quantity, string? payer_note);
126126
[Throws=NodeError]
127127
Offer receive(u64 amount_msat, [ByRef]string description);
128128
[Throws=NodeError]
129129
Offer receive_variable_amount([ByRef]string description);
130130
[Throws=NodeError]
131131
Bolt12Invoice request_refund_payment([ByRef]Refund refund);
132132
[Throws=NodeError]
133-
Refund initiate_refund(u64 amount_msat, u32 expiry_secs, string? payer_note, u64? quantity);
133+
Refund initiate_refund(u64 amount_msat, u32 expiry_secs, u64? quantity, string? payer_note);
134134
};
135135

136136
interface SpontaneousPayment {

src/payment/bolt12.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl Bolt12Payment {
150150
/// If `payer_note` is `Some` it will be seen by the recipient and reflected back in the invoice
151151
/// response.
152152
pub fn send_using_amount(
153-
&self, offer: &Offer, amount_msat: u64, payer_note: Option<String>, quantity: Option<u64>,
153+
&self, offer: &Offer, amount_msat: u64, quantity: Option<u64>, payer_note: Option<String>,
154154
) -> Result<PaymentId, Error> {
155155
let rt_lock = self.runtime.read().unwrap();
156156
if rt_lock.is_none() {
@@ -314,8 +314,8 @@ impl Bolt12Payment {
314314

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

0 commit comments

Comments
 (0)