Update api.go

This commit is contained in:
marukai67 2026-02-04 16:11:07 +01:00 committed by GitHub
parent 6b82cef68f
commit e3ec2fb031
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -400,7 +400,7 @@ func (api *SignerAPI) List(ctx context.Context) ([]common.Address, error) {
if result.Accounts == nil {
return nil, ErrRequestDenied
}
addresses := make([]common.Address, 0)
addresses := make([]common.Address, 0, len(result.Accounts))
for _, acc := range result.Accounts {
addresses = append(addresses, acc.Address)
}