Fix minor build issues, resulting in the tests now running
[ldk-swift-linux] / LDKSwift / Tests / LDKSwiftTests / HumanObjectPeerTestInstance.swift
index ac800306a5f81cd11f3e2b329deadb6684fbff35..ce2b8030c7d180cf843fd803e6647f2b26e8a8ba 100644 (file)
@@ -7,6 +7,7 @@
 
 import Foundation
 import LDKSwift
+import LDKCHeaders
 
 public class HumanObjectPeerTestInstance {
     
@@ -118,14 +119,10 @@ public class HumanObjectPeerTestInstance {
         
         fileprivate class TestPersister: Persist {
             override func persist_new_channel(id: OutPoint, data: ChannelMonitor) -> Result_NoneChannelMonitorUpdateErrZ {
-                var result = Result_NoneChannelMonitorUpdateErrZ()
-                result.cOpaqueStruct!.result_ok = true
-                return result
+                return Result_NoneChannelMonitorUpdateErrZ()
             }
             override func update_persisted_channel(id: OutPoint, update: ChannelMonitorUpdate, data: ChannelMonitor) -> Result_NoneChannelMonitorUpdateErrZ {
-                var result = Result_NoneChannelMonitorUpdateErrZ()
-                result.cOpaqueStruct!.result_ok = true
-                return result
+                return Result_NoneChannelMonitorUpdateErrZ()
             }
         }