Skip to content

Commit 9466b9e

Browse files
gballetkaralabe
authored andcommitted
signer/core: fix reference issue in key derivation (#19827)
* signer/core: fix reference issue in key derivation * Review feedback
1 parent 4ac04ae commit 9466b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accounts/usbwallet/wallet.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@ func (w *wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
479479

480480
if _, ok := w.paths[address]; !ok {
481481
w.accounts = append(w.accounts, account)
482-
w.paths[address] = path
482+
w.paths[address] = make(accounts.DerivationPath, len(path))
483+
copy(w.paths[address], path)
483484
}
484485
return account, nil
485486
}

0 commit comments

Comments
 (0)