Integrate SDK Request / Response changes

This commit is contained in:
ok300
2023-10-23 19:38:32 +02:00
parent 1caf35a802
commit 0699adeb9d
12 changed files with 54 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ use std::sync::Arc;
use anyhow::Result;
use breez_sdk_core::*;
use breez_sdk_core::InputType::LnUrlWithdraw;
async fn withdraw(sdk: Arc<BreezServices>) -> Result<()> {
// ANCHOR: lnurl-withdraw
@@ -13,7 +14,11 @@ async fn withdraw(sdk: Arc<BreezServices>) -> Result<()> {
let amount_msat = wd.min_withdrawable;
let description = "Test withdraw".to_string();
sdk.lnurl_withdraw(wd, amount_msat, Some(description)).await?;
sdk.lnurl_withdraw(LnUrlWithdrawRequest {
data: wd,
amount_msat,
description: Some(description)
}).await?;
}
// ANCHOR_END: lnurl-withdraw