signer/core: fix reference issue in key derivation

This commit is contained in:
Guillaume Ballet 2019-07-11 12:54:22 +02:00
parent 72029f0f88
commit 5f46edc55c

View file

@ -479,7 +479,7 @@ func (w *wallet) Derive(path accounts.DerivationPath, pin bool) (accounts.Accoun
if _, ok := w.paths[address]; !ok { if _, ok := w.paths[address]; !ok {
w.accounts = append(w.accounts, account) w.accounts = append(w.accounts, account)
w.paths[address] = path copy(w.paths[address], path)
} }
return account, nil return account, nil
} }