Skip to content

Commit e8c9eb6

Browse files
committed
fix: regression from 2fb7143
1 parent 072c513 commit e8c9eb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BDKSwiftExampleWallet/Service/BDK Service/BDKService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ private class BDKService {
100100
let storedClientType = try? keyClient.getClientType()
101101
self.clientType = storedClientType ?? .esplora
102102

103-
// Ensure Kyoto always uses Signet
103+
// If starting in Kyoto, constrain in-memory network to Signet, but do not persist here.
104+
// Persistence should happen only when the user confirms Kyoto via updateClientType/updateNetwork.
104105
if self.clientType == .kyoto && self.network != .signet {
105106
self.network = .signet
106-
try? keyClient.saveNetwork(Network.signet.description)
107107
}
108108

109109
if self.clientType == .kyoto {

0 commit comments

Comments
 (0)