From b9bddfe46a614973296dbae1f35bcf1a2cf1144e Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Wed, 17 Jul 2019 15:43:06 +0200 Subject: [PATCH] Review feedback --- accounts/usbwallet/wallet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go index 8583129d55..ee539d9653 100644 --- a/accounts/usbwallet/wallet.go +++ b/accounts/usbwallet/wallet.go @@ -479,6 +479,7 @@ 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] = make(accounts.DerivationPath, len(path)) copy(w.paths[address], path) } return account, nil