We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Arc
uniffi
1 parent accbb65 commit eb52ce0Copy full SHA for eb52ce0
src/lib.rs
@@ -874,6 +874,17 @@ impl Node {
874
}
875
876
/// Returns a payment handler allowing to send and receive on-chain payments.
877
+ #[cfg(not(feature = "uniffi"))]
878
+ pub fn onchain_payment(&self) -> OnchainPaymentHandler {
879
+ OnchainPaymentHandler::new(
880
+ Arc::clone(&self.runtime),
881
+ Arc::clone(&self.wallet),
882
+ Arc::clone(&self.logger),
883
+ )
884
+ }
885
+
886
+ /// Returns a payment handler allowing to send and receive on-chain payments.
887
+ #[cfg(feature = "uniffi")]
888
pub fn onchain_payment(&self) -> Arc<OnchainPaymentHandler> {
889
Arc::new(OnchainPaymentHandler::new(
890
Arc::clone(&self.runtime),
0 commit comments