Skip to content

Commit 3125cfb

Browse files
authored
chore: services
1 parent 57327ca commit 3125cfb

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

BDKSwiftExampleWallet/Service/BDK Service/BDKService.swift

+1-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private class BDKService {
1414
var network: Network
1515
private var wallet: Wallet?
1616
private let keyService: KeyClient
17-
private let esploraClient: EsploraClient // TODO: this is new, and it's use can be refactored in this file
17+
private let esploraClient: EsploraClient
1818
private var needsFullScan: Bool = false
1919

2020
init(
@@ -197,9 +197,6 @@ private class BDKService {
197197
)
198198
let _ = try wallet.applyUpdate(update: update)
199199
let _ = try wallet.commit()
200-
// TODO: Do i need to do this next step of setting wallet to wallet again?
201-
// prob not
202-
self.wallet = wallet
203200
}
204201

205202
func fullScanWithInspector(inspector: FullScanScriptInspector) async throws {
@@ -214,9 +211,6 @@ private class BDKService {
214211
)
215212
let _ = try wallet.applyUpdate(update: update)
216213
let _ = try wallet.commit()
217-
// TODO: Do i need to do this next step of setting wallet to wallet again?
218-
// prob not
219-
self.wallet = wallet
220214
}
221215

222216
func calculateFee(tx: Transaction) throws -> UInt64 {

BDKSwiftExampleWallet/Service/Key Service/KeyService.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private struct KeyService {
1313
private let keychain: Keychain
1414

1515
init() {
16-
let keychain = Keychain(service: "com.matthewramsden.bdkswiftexamplewallet.testservice") // TODO: use `Bundle.main.displayName` or something like com.bdk.swiftwalletexample
16+
let keychain = Keychain(service: "com.matthewramsden.bdkswiftexamplewallet.testservice")
1717
.label(Bundle.main.displayName)
1818
.synchronizable(false)
1919
.accessibility(.whenUnlocked)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ An example iOS app using [Bitcoin Dev Kit](https://github.com/bitcoindevkit) (BD
1212

1313
### Wallet
1414

15-
Supports single key HD wallets with BIP86 derivation paths.
15+
Defaults to single key HD wallets with BIP86 derivation paths.
1616

1717
### Implemented
1818

0 commit comments

Comments
 (0)