Skip to content

Commit 79d2d3a

Browse files
committed
feat(): bump path
1 parent 122f59d commit 79d2d3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/services/secrets/secrets.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ export class SecretsService {
298298

299299
if (isBtc) {
300300
// BTC protocols: Always HD, increment account index
301-
// e.g., m/44'/0'/0' -> m/44'/0'/1'
302301
const lastIndices = existingWallets.map((wallet) => {
303302
const match = wallet.derivationPath.match(/(\d+)[h']?\/?$/)
304303
return match ? parseInt(match[1], 10) : 0
@@ -309,8 +308,7 @@ export class SecretsService {
309308
return { derivationPath: newPath, isHDWallet: true }
310309
} else if (supportsHD) {
311310
// HD-capable protocols (ETH, OP, etc.): First is HD, subsequent are non-HD
312-
// First wallet at m/44'/60'/0' is equivalent to m/44'/60'/0'/0/0
313-
// Subsequent wallets use m/44'/60'/0'/0/1, m/44'/60'/0'/0/2, etc.
311+
314312
const addressIndices = existingWallets.map((wallet) => {
315313
if (wallet.isExtendedPublicKey) {
316314
// HD wallet is equivalent to /0/0

0 commit comments

Comments
 (0)