From 8c984338b01535414a746f2934fbc3a81307deba Mon Sep 17 00:00:00 2001 From: lightclient Date: Fri, 7 Feb 2025 13:22:26 -0700 Subject: [PATCH] core/types: fix typo --- core/types/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index e104f1bb1c..7870746d54 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -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)