From 2c5b8d6846bd5fedd76b2b97ae03ec6fb68b7ceb Mon Sep 17 00:00:00 2001 From: Erdem Yerebasmaz Date: Fri, 20 Oct 2023 16:31:00 +0300 Subject: [PATCH] Address feedback --- src/guide/send_payment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guide/send_payment.md b/src/guide/send_payment.md index 735453a..27e168c 100644 --- a/src/guide/send_payment.md +++ b/src/guide/send_payment.md @@ -26,7 +26,7 @@ do { // The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount. // The amountMsat is required in case an amount is not specified in the bolt11 invoice'. let req = SendPaymentRequest(bolt11: "...", amountMsat: 3000000) - let response = try sdk.sendSpontaneousPayment(req: req) + let response = try sdk.sendPayment(req: req) } catch { // handle error } @@ -93,7 +93,7 @@ bolt11 = "..." try: # The `amount_msat` param is optional and should only passed if the bolt11 doesn't specify an amount. # The amount_msat is required in case an amount is not specified in the bolt11 invoice'. - req = SendPaymentRequest(bolt11=bolt11, amount_msat=None) + req = breez_sdk.SendPaymentRequest(bolt11=bolt11, amount_msat=3000000) sdk_services.send_payment(req=req) except Exception as error: # Handle error