mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 06:14:21 +01:00
Bump Rust snippets SDK dependency to v0.2.9
This commit is contained in:
@@ -5,18 +5,14 @@ use breez_sdk_core::*;
|
||||
|
||||
async fn receive_payment(sdk: Arc<BreezServices>) -> Result<()> {
|
||||
// ANCHOR: receive-payment
|
||||
let res = sdk.receive_payment(
|
||||
ReceivePaymentRequest {
|
||||
let res = sdk
|
||||
.receive_payment(ReceivePaymentRequest {
|
||||
amount_msat: 3_000_000,
|
||||
description: "Invoice for 3000 sats".into(),
|
||||
cltv: None,
|
||||
expiry: None,
|
||||
opening_fee_params: None,
|
||||
preimage: None,
|
||||
use_description_hash: None
|
||||
..Default::default()
|
||||
})
|
||||
.await?;
|
||||
// ANCHOR_END: receive-payment
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user