Skip to content

Commit

Permalink
signer/core: fix reference issue in key derivation (ethereum#19827)
Browse files Browse the repository at this point in the history
* signer/core: fix reference issue in key derivation

* Review feedback
  • Loading branch information
gzliudan committed Jan 6, 2025
1 parent 56cfb03 commit fd10210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accounts/usbwallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fd10210

Please sign in to comment.