Update wallet.go

This commit is contained in:
Alvarez 2025-12-08 19:57:54 +01:00 committed by GitHub
parent ae207a28c7
commit c86b4990b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,13 +340,12 @@ func (w *wallet) selfDerive() {
var (
accs []accounts.Account
paths []accounts.DerivationPath
context = context.Background()
nextPaths = append([]accounts.DerivationPath{}, w.deriveNextPaths...)
nextAddrs = append([]common.Address{}, w.deriveNextAddrs...)
context = context.Background()
)
nextPaths := make([]accounts.DerivationPath, len(w.deriveNextPaths))
for i, path := range w.deriveNextPaths {
nextPaths[i] = append(accounts.DerivationPath(nil), path...)
}
for i := 0; i < len(nextAddrs); i++ {
for empty := false; !empty; {
// Retrieve the next derived Ethereum account