Address feedback

This commit is contained in:
Erdem Yerebasmaz
2023-10-20 16:31:00 +03:00
parent 344b952b90
commit 2c5b8d6846

View File

@@ -26,7 +26,7 @@ do {
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount. // 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'. // The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
let req = SendPaymentRequest(bolt11: "...", amountMsat: 3000000) let req = SendPaymentRequest(bolt11: "...", amountMsat: 3000000)
let response = try sdk.sendSpontaneousPayment(req: req) let response = try sdk.sendPayment(req: req)
} catch { } catch {
// handle error // handle error
} }
@@ -93,7 +93,7 @@ bolt11 = "..."
try: try:
# The `amount_msat` param is optional and should only passed if the bolt11 doesn't specify an amount. # 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'. # 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) sdk_services.send_payment(req=req)
except Exception as error: except Exception as error:
# Handle error # Handle error