fix compilation errors
This commit is contained in:
parent
c6bacef417
commit
b1d5aaee0f
|
@ -38,6 +38,14 @@ enum DarksideDataset: String {
|
|||
}
|
||||
|
||||
class DarksideWalletService: LightWalletService {
|
||||
func getInfo() throws -> LightWalletdInfo {
|
||||
try service.getInfo()
|
||||
}
|
||||
|
||||
func getInfo(result: @escaping (Result<LightWalletdInfo, LightWalletServiceError>) -> Void) {
|
||||
service.getInfo(result: result)
|
||||
}
|
||||
|
||||
func closeConnection() {
|
||||
|
||||
}
|
||||
|
|
|
@ -18,6 +18,14 @@ struct LightWalletServiceMockResponse: LightWalletServiceResponse {
|
|||
}
|
||||
|
||||
class MockLightWalletService: LightWalletService {
|
||||
func getInfo() throws -> LightWalletdInfo {
|
||||
throw LightWalletServiceError.generalError(message: "Not Implemented")
|
||||
}
|
||||
|
||||
func getInfo(result: @escaping (Result<LightWalletdInfo, LightWalletServiceError>) -> Void) {
|
||||
return result(.failure(LightWalletServiceError.generalError(message: "Not Implemented")))
|
||||
}
|
||||
|
||||
func closeConnection() {
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,10 @@ import Foundation
|
|||
@testable import ZcashLightClientKit
|
||||
|
||||
class MockTransactionRepository: TransactionRepository {
|
||||
func blockForHeight(_ height: BlockHeight) throws -> Block? {
|
||||
nil
|
||||
}
|
||||
|
||||
func findConfirmedTransactions(in range: BlockRange, offset: Int, limit: Int) throws -> [ConfirmedTransactionEntity]? {
|
||||
nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue