diff --git a/libs/sdk-bindings/src/uniffi_binding.rs b/libs/sdk-bindings/src/uniffi_binding.rs index 1d499ed7c..62f22db92 100644 --- a/libs/sdk-bindings/src/uniffi_binding.rs +++ b/libs/sdk-bindings/src/uniffi_binding.rs @@ -127,10 +127,7 @@ impl BlockingBreezServices { ) } - pub fn receive_payment( - &self, - req: ReceivePaymentRequest, - ) -> SdkResult { + pub fn receive_payment(&self, req: ReceivePaymentRequest) -> SdkResult { rt().block_on(self.breez_services.receive_payment(req)) } diff --git a/libs/sdk-core/src/lnurl/pay.rs b/libs/sdk-core/src/lnurl/pay.rs index 03f70cc8a..158896d1c 100644 --- a/libs/sdk-core/src/lnurl/pay.rs +++ b/libs/sdk-core/src/lnurl/pay.rs @@ -819,7 +819,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; match mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await? { LnUrlPayResult::EndpointSuccess { data: None } => Ok(()), @@ -848,7 +848,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; let r = mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await; // An unsupported Success Action results in an error assert!(r.is_err()); @@ -873,7 +873,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; match mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await? { LnUrlPayResult::EndpointSuccess { data: None } => Err(anyhow!( @@ -906,7 +906,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; assert!(mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await .is_err()); @@ -931,7 +931,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; let res = mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await; assert!(matches!(res, Ok(LnUrlPayResult::EndpointError { data: _ }))); @@ -963,7 +963,7 @@ mod tests { let mock_breez_services = crate::breez_services::tests::breez_services().await?; match mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await? { LnUrlPayResult::EndpointSuccess { @@ -1031,7 +1031,7 @@ mod tests { ) .await?; match mock_breez_services - .lnurl_pay(user_amount_sat, Some(comment), pay_req) + .lnurl_pay(pay_req, user_amount_sat, Some(comment)) .await? { LnUrlPayResult::EndpointSuccess {