core/types: fix typo

This commit is contained in:
lightclient 2025-02-07 13:22:26 -07:00
parent 37d91cde0d
commit 8c984338b0
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -489,7 +489,7 @@ func (tx *Transaction) Authorities() []common.Address {
if !ok {
return nil
}
auths := make([]common.Address, len(setcodetx.AuthList))
auths := make([]common.Address, 0, len(setcodetx.AuthList))
for _, auth := range setcodetx.AuthList {
if addr, err := auth.Authority(); err == nil {
auths = append(auths, addr)