mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
Update api.go
This commit is contained in:
parent
6b82cef68f
commit
e3ec2fb031
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue