Skip to content

Commit bb5abf1

Browse files
committed
Account for SingerProvider returning Results
1 parent 627daf1 commit bb5abf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/LDKSwift/Tests/LDKSwiftTests/WrappedSignerProviderTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,20 @@ class WrappedSignerProviderTests: XCTestCase {
136136
return myKeysManager!.keysManager.asSignerProvider().readChanSigner(reader: reader)
137137
}
138138

139-
override func getDestinationScript() -> [UInt8] {
139+
override func getDestinationScript() -> Bindings.Result_ScriptNoneZ {
140140
print("entering wrapper: getDestinationScript()")
141141
return myKeysManager!.keysManager.asSignerProvider().getDestinationScript()
142142
}
143143

144-
override func getShutdownScriptpubkey() -> Bindings.ShutdownScript {
144+
override func getShutdownScriptpubkey() -> Bindings.Result_ShutdownScriptNoneZ {
145145
print("entering wrapper: getShutdownScriptpubkey()")
146146

147147
let randomHex = "6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000"
148148
let randomHexBytes = LDKSwiftTests.hexStringToBytes(hexString: randomHex)!
149149
let witnessProgram = ShutdownScript.newWitnessProgram(version: 1, program: randomHexBytes)
150150
let witnessBasedScript = witnessProgram.getValue()!
151151

152-
return witnessBasedScript
152+
return Result_ShutdownScriptNoneZ.initWithOk(o: witnessBasedScript)
153153
}
154154
}
155155

0 commit comments

Comments
 (0)