Skip to content

Commit 68c33b7

Browse files
committed
fixup! Use the pay_for_offer_from_hrn method from LDK upstream
Just fixing some formatting issues.
1 parent f45de4a commit 68c33b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ffi/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ pub use lightning::chain::channelmonitor::BalanceSource;
2626
pub use lightning::events::{ClosureReason, PaymentFailureReason};
2727
pub use lightning::ln::types::ChannelId;
2828
pub use lightning::offers::offer::OfferId;
29+
pub use lightning::onion_message::dns_resolution::HumanReadableName as LdkHumanReadableName;
2930
pub use lightning::routing::gossip::{NodeAlias, NodeId, RoutingFees};
3031
pub use lightning::routing::router::RouteParametersConfig;
31-
pub use lightning::onion_message::dns_resolution::HumanReadableName as LdkHumanReadableName;
3232
pub use lightning_types::string::UntrustedString;
3333

3434
pub use lightning_types::payment::{PaymentHash, PaymentPreimage, PaymentSecret};

src/payment/unified.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl UnifiedPayment {
200200
resolved.methods().iter().find(|m| matches!(m, PaymentMethod::LightningBolt12(_)))
201201
{
202202
let offer = maybe_wrap(offer.clone());
203-
203+
204204
let payment_result = if let Ok(hrn) = HumanReadableName::from_encoded(uri_str) {
205205
let hrn = maybe_wrap(hrn.clone());
206206
self.bolt12_payment.send_using_amount(&offer, amount_msat.unwrap_or(0), None, None, Some(hrn))

0 commit comments

Comments
 (0)