mirror of
https://github.com/daywalker90/cln-nip47.git
synced 2026-08-13 12:33:43 +02:00
remove bolt12 code from pay_invoice
This commit is contained in:
parent
be0ed8a43e
commit
66e6378a72
1 changed files with 0 additions and 6 deletions
|
|
@ -53,9 +53,6 @@ pub async fn pay_invoice(
|
|||
i
|
||||
} else {
|
||||
match invoice_decoded.item_type {
|
||||
cln_rpc::model::responses::DecodeType::BOLT12_INVOICE => {
|
||||
invoice_decoded.invoice_payment_hash.unwrap()
|
||||
}
|
||||
cln_rpc::model::responses::DecodeType::BOLT11_INVOICE => {
|
||||
invoice_decoded.payment_hash.unwrap().to_string()
|
||||
}
|
||||
|
|
@ -64,9 +61,6 @@ pub async fn pay_invoice(
|
|||
};
|
||||
|
||||
let invoice_amt_msat = match invoice_decoded.item_type {
|
||||
cln_rpc::model::responses::DecodeType::BOLT12_INVOICE => {
|
||||
invoice_decoded.invoice_amount_msat.unwrap().msat()
|
||||
}
|
||||
cln_rpc::model::responses::DecodeType::BOLT11_INVOICE => {
|
||||
invoice_decoded.amount_msat.unwrap().msat()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue