add stubs, fix typo

This commit is contained in:
Francisco Gindre 2020-12-11 18:07:51 -03:00
parent 90cd2d0ff8
commit 0c9f3cb5ef
3 changed files with 9 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class DerivationToolTests: XCTestCase {
}
func testDeriveSecretKeyFromSeed() throws {
XCTAss ertEqual(try DerivationTool.default.deriveTransparentPrivateKey(seed: [UInt8](seedData)), "127ec31a3482e53940aaefbc41c9621a344c84e4e16cc2c9af380d81b8f7bb74")
XCTAssertEqual(try DerivationTool.default.deriveTransparentPrivateKey(seed: [UInt8](seedData)), "127ec31a3482e53940aaefbc41c9621a344c84e4e16cc2c9af380d81b8f7bb74")
}
}

View File

@ -18,6 +18,10 @@ struct LightWalletServiceMockResponse: LightWalletServiceResponse {
}
class MockLightWalletService: LightWalletService {
func fetchUTXOs(for tAddress: String, result: @escaping (Result<[UnspentTransactionOutputEntity], LightWalletServiceError>) -> Void) {
}
private var service = LightWalletGRPCService(channel: ChannelProvider().channel())

View File

@ -81,6 +81,10 @@ class MockRustBackend: ZcashRustBackendWelding {
false
}
static func deriveTransparentPrivateKeyFromSeed(seed: [UInt8]) throws -> String? {
nil
}
static func initAccountsTable(dbData: URL, exfvks: [String]) throws -> Bool {
false
}