Skip to content

Commit

Permalink
Merge pull request #348 from tnull/2024-08-fix-bolt12-api
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull authored Aug 22, 2024
2 parents 76fb23f + c5b8d6e commit e233188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,13 @@ impl Node {
///
/// [BOLT 12]: https://github.com/lightning/bolts/blob/master/12-offer-encoding.md
#[cfg(not(feature = "uniffi"))]
pub fn bolt12_payment(&self) -> Arc<Bolt12Payment> {
Arc::new(Bolt12Payment::new(
pub fn bolt12_payment(&self) -> Bolt12Payment {
Bolt12Payment::new(
Arc::clone(&self.runtime),
Arc::clone(&self.channel_manager),
Arc::clone(&self.payment_store),
Arc::clone(&self.logger),
))
)
}

/// Returns a payment handler allowing to create and pay [BOLT 12] offers and refunds.
Expand Down

0 comments on commit e233188

Please sign in to comment.