Skip to content

Commit 3e38b58

Browse files
committed
Make test persister return valid types.
1 parent 656b82f commit 3e38b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/TestPersister.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class TestPersister: Persist {
1313
override func persist_new_channel(id: OutPoint, data: ChannelMonitor) -> Result_NoneChannelMonitorUpdateErrZ {
1414
let idBytes: [UInt8] = id.write()
1515
let monitorBytes: [UInt8] = data.write()
16-
return Result_NoneChannelMonitorUpdateErrZ(pointer: LDKCResult_NoneChannelMonitorUpdateErrZ())
16+
return Result_NoneChannelMonitorUpdateErrZ.ok()
1717
}
1818

1919
override func update_persisted_channel(id: OutPoint, update: ChannelMonitorUpdate, data: ChannelMonitor) -> Result_NoneChannelMonitorUpdateErrZ {
2020
let idBytes: [UInt8] = id.write()
2121
let monitorBytes: [UInt8] = data.write()
22-
return Result_NoneChannelMonitorUpdateErrZ(pointer: LDKCResult_NoneChannelMonitorUpdateErrZ())
22+
return Result_NoneChannelMonitorUpdateErrZ.ok()
2323
}
2424

2525
}

0 commit comments

Comments
 (0)