aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--accounts/usbwallet/wallet.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go
index ed786d9b4..ee539d965 100644
--- a/accounts/usbwallet/wallet.go
+++ b/accounts/usbwallet/wallet.go
@@ -479,7 +479,8 @@ func (w *wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
if _, ok := w.paths[address]; !ok {
w.accounts = append(w.accounts, account)
- w.paths[address] = path
+ w.paths[address] = make(accounts.DerivationPath, len(path))
+ copy(w.paths[address], path)
}
return account, nil
}