Skip to content

Commit 7e531f4

Browse files
committed
[trello.com/c/vawidi4o] Fix storeInKVS typo
1 parent bda5013 commit 7e531f4

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

Adamant/Modules/Wallets/Adamant/AdmWalletService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ final class AdmWalletService: NSObject, WalletCoreProtocol, WalletStaticCoreProt
225225
.init(sentDate: nil, status: .notInitiated)
226226
}
227227

228-
func initWallet(withPassphrase: String, withPassword: String, storeInKVC: Bool) async throws -> WalletAccount {
228+
func initWallet(withPassphrase: String, withPassword: String, storeInKVS: Bool) async throws -> WalletAccount {
229229
throw InternalAPIError.unknownError
230230
}
231231

Adamant/Modules/Wallets/Bitcoin/BtcWalletService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ extension BtcWalletService {
445445
btcWallet = nil
446446
}
447447

448-
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool) async throws -> WalletAccount {
448+
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool) async throws -> WalletAccount {
449449
guard let adamant = accountService.account else {
450450
throw WalletServiceError.notLogged
451451
}
@@ -488,7 +488,7 @@ extension BtcWalletService {
488488
self.update()
489489
}
490490

491-
guard storeInKVC else { return eWallet }
491+
guard storeInKVS else { return eWallet }
492492

493493
// MARK: 4. Save address into KVS
494494
let kvsAddressModel = makeKVSAddressModel(wallet: eWallet)

Adamant/Modules/Wallets/Dash/DashWalletService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ extension DashWalletService {
300300
}
301301

302302
@MainActor
303-
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool) async throws -> WalletAccount {
303+
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool) async throws -> WalletAccount {
304304
guard let adamant = accountService.account else {
305305
throw WalletServiceError.notLogged
306306
}
@@ -345,7 +345,7 @@ extension DashWalletService {
345345
self.update()
346346
}
347347

348-
guard storeInKVC else { return eWallet }
348+
guard storeInKVS else { return eWallet }
349349

350350
// MARK: 4. Save address into KVS
351351
let kvsAddressModel = makeKVSAddressModel(wallet: eWallet)

Adamant/Modules/Wallets/Doge/DogeWalletService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ extension DogeWalletService {
319319
dogeWallet = nil
320320
}
321321

322-
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool) async throws -> WalletAccount {
322+
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool) async throws -> WalletAccount {
323323
guard let adamant = accountService.account else {
324324
throw WalletServiceError.notLogged
325325
}
@@ -363,7 +363,7 @@ extension DogeWalletService {
363363
await self.update()
364364
}
365365

366-
guard storeInKVC else { return eWallet }
366+
guard storeInKVS else { return eWallet }
367367

368368
// MARK: 4. Save address into KVS
369369
let kvsAddressModel = makeKVSAddressModel(wallet: eWallet)

Adamant/Modules/Wallets/ERC20/ERC20WalletService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ final class ERC20WalletService: WalletCoreProtocol, @unchecked Sendable {
368368

369369
// MARK: - WalletInitiatedWithPassphrase
370370
extension ERC20WalletService {
371-
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool) async throws -> WalletAccount {
371+
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool) async throws -> WalletAccount {
372372

373373
// MARK: 1. Prepare
374374
setState(.notInitiated)

Adamant/Modules/Wallets/Ethereum/EthWalletService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ final class EthWalletService: WalletCoreProtocol, WalletStaticCoreProtocol, Smar
402402

403403
// MARK: - WalletInitiatedWithPassphrase
404404
extension EthWalletService {
405-
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool) async throws -> WalletAccount {
405+
func initWallet(withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool) async throws -> WalletAccount {
406406
guard let adamant = accountService?.account else {
407407
throw WalletServiceError.notLogged
408408
}
@@ -448,7 +448,7 @@ extension EthWalletService {
448448
await self.update()
449449
}
450450

451-
guard storeInKVC else { return eWallet }
451+
guard storeInKVS else { return eWallet }
452452

453453
// MARK: 4. Save into KVS
454454
let kvsAddressModel = makeKVSAddressModel(wallet: eWallet)

Adamant/Modules/Wallets/Klayr/WalletService/KlyWalletService.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ final class KlyWalletService: WalletCoreProtocol, WalletStaticCoreProtocol, @unc
9999
// MARK: -
100100

101101
func initWallet(
102-
withPassphrase passphrase: String, withPassword password: String, storeInKVC: Bool
102+
withPassphrase passphrase: String, withPassword password: String, storeInKVS: Bool
103103
) async throws -> WalletAccount {
104-
try await initWallet(passphrase: passphrase, password: password, storeInKVC: storeInKVC)
104+
try await initWallet(passphrase: passphrase, password: password, storeInKVS: storeInKVS)
105105
}
106106

107107
func setInitiationFailed(reason: String) {
@@ -413,7 +413,7 @@ private extension KlyWalletService {
413413

414414
// MARK: - Init Wallet
415415
private extension KlyWalletService {
416-
func initWallet(passphrase: String, password: String, storeInKVC: Bool) async throws -> WalletAccount {
416+
func initWallet(passphrase: String, password: String, storeInKVS: Bool) async throws -> WalletAccount {
417417
guard let adamant = accountService.account else {
418418
throw WalletServiceError.notLogged
419419
}
@@ -471,7 +471,7 @@ private extension KlyWalletService {
471471
await update()
472472
}
473473

474-
guard storeInKVC else { return eWallet }
474+
guard storeInKVS else { return eWallet }
475475

476476
// Save into KVS
477477

Adamant/Modules/Wallets/WalletsService/WalletCoreProtocol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ protocol WalletCoreProtocol: AnyObject, Sendable {
305305
func updateStatus(for id: String, status: TransactionStatus?)
306306
func isExist(address: String) async throws -> Bool
307307
func statusInfoFor(transaction: CoinTransaction) async -> TransactionStatusInfo
308-
func initWallet(withPassphrase: String, withPassword: String, storeInKVC: Bool) async throws -> WalletAccount
308+
func initWallet(withPassphrase: String, withPassword: String, storeInKVS: Bool) async throws -> WalletAccount
309309
func setInitiationFailed(reason: String)
310310
func shortDescription(for transaction: RichMessageTransaction) -> NSAttributedString
311311
func getFee(comment: String) -> Decimal

Adamant/Services/AdamantAccountService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ extension AdamantAccountService {
428428
let result = try? await wallet.core.initWallet(
429429
withPassphrase: passphrase,
430430
withPassword: .empty,
431-
storeInKVC: true
431+
storeInKVS: true
432432
)
433433
return result
434434
}

Adamant/Services/SecretWalletsFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct SecretWalletsFactory {
7070
_ = try? await wallet.core.initWallet(
7171
withPassphrase: passphrase,
7272
withPassword: password,
73-
storeInKVC: false
73+
storeInKVS: false
7474
)
7575
}
7676
}

0 commit comments

Comments
 (0)