From d5a423af068af277b654375f828cc31a92a9d412 Mon Sep 17 00:00:00 2001 From: q Date: Sun, 25 Jan 2026 03:02:44 +0800 Subject: [PATCH] fix bug --- core/types/transaction.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index e8a408e0d5..71f2ba45f4 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -524,14 +524,14 @@ func (tx *Transaction) SetCodeAuthorities() []common.Address { marks = make(map[common.Address]bool) auths = make([]common.Address, 0, len(setcodetx.AuthList)) ) - for _, auth := range setcodetx.AuthList { + for idx, auth := range setcodetx.AuthList { addr, err := auth.Authority() if err != nil { - log.Error("SetCodeTx authorization has invalid signature", "tx", tx.Hash(), "address", addr, "err", err) + log.Error("SetCodeTx authorization has invalid signature", "tx", tx.Hash(), "index", idx, "err", err) continue } if marks[addr] { - log.Warn("SetCodeTx authorization has duplicate authority", "tx", tx.Hash(), "address", addr) + log.Warn("SetCodeTx authorization has duplicate authority", "tx", tx.Hash(), "index", idx) continue } marks[addr] = true