From ec9907be1a0ad8ef44a311daf5d2fd4a38479d8b Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 22 Aug 2024 12:24:38 +0200 Subject: [PATCH] fix: inner keys manager function --- lib/android/src/main/java/com/reactnativeldk/LdkModule.kt | 2 +- lib/ios/Ldk.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt b/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt index 82fbc27b..1f1a8b79 100644 --- a/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt +++ b/lib/android/src/main/java/com/reactnativeldk/LdkModule.kt @@ -1272,7 +1272,7 @@ class LdkModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMod } val res = if (useInner) { - keysManager!!.inner.spend_spendable_outputs( + keysManager!!.inner.as_OutputSpender().spend_spendable_outputs( descriptors, emptyArray(), changeDestinationScript.hexa(), diff --git a/lib/ios/Ldk.swift b/lib/ios/Ldk.swift index 66da9ee4..1afd4843 100644 --- a/lib/ios/Ldk.swift +++ b/lib/ios/Ldk.swift @@ -1439,7 +1439,7 @@ class Ldk: NSObject { continue } - let res = useInner ? keysManager.inner.spendSpendableOutputs( + let res = useInner ? keysManager.inner.asOutputSpender().spendSpendableOutputs( descriptors: descriptors, outputs: [], changeDestinationScript: String(changeDestinationScript).hexaBytes,