mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-25 08:54:21 +01:00
Persist and expose BIP353 addresses (#718)
* Persist and expose BIP353 addresses * Increment schema minor version * Move bip353 address from LNURL context to SendDestination * Update after sdk-common merge * Address review * Only try to insert bip353 address when available
This commit is contained in:
@@ -692,7 +692,10 @@ pub(crate) async fn handle_command(
|
||||
} => {
|
||||
let input = sdk.parse(&lnurl).await?;
|
||||
let res = match input {
|
||||
InputType::LnUrlPay { data: pd } => {
|
||||
InputType::LnUrlPay {
|
||||
data: pd,
|
||||
bip353_address,
|
||||
} => {
|
||||
let amount = match drain.unwrap_or(false) {
|
||||
true => PayAmount::Drain,
|
||||
false => {
|
||||
@@ -713,6 +716,7 @@ pub(crate) async fn handle_command(
|
||||
.prepare_lnurl_pay(PrepareLnUrlPayRequest {
|
||||
data: pd,
|
||||
amount,
|
||||
bip353_address,
|
||||
comment: None,
|
||||
validate_success_action_url: validate_success_url,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user