fix compilation errors

This commit is contained in:
Francisco Gindre 2021-05-18 11:48:32 -03:00
parent c6bacef417
commit b1d5aaee0f
3 changed files with 20 additions and 0 deletions

View File

@ -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() {
}

View File

@ -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() {
}

View File

@ -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
}