Fix linter warnings for Swift snippets

This commit is contained in:
Erdem Yerebasmaz
2024-01-25 17:09:30 +03:00
parent 0c40b26e92
commit f881f0aebc
5 changed files with 15 additions and 6 deletions

View File

@@ -19,7 +19,13 @@ func withdraw(sdk: BlockingBreezServices) -> LnUrlWithdrawResult? {
if case.lnUrlWithdraw(let `data`) = inputType {
let amountMsat = data.maxWithdrawable
let description = "Test withdraw"
response = try? sdk.withdrawLnurl(request: LnUrlWithdrawRequest(data: data, amountMsat: amountMsat))
response = try? sdk.withdrawLnurl(
request: LnUrlWithdrawRequest(
data: data,
amountMsat: amountMsat,
description: description
)
)
}
}
// ANCHOR_END: lnurl-withdraw