From 90dcd2adab8c0fed9581fc504f74c8fc295fd9d0 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 5 Feb 2025 16:41:01 +0100 Subject: [PATCH] fix empty auth test --- tests/transaction_test_util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go index 3f91a82ec5..afc303f484 100644 --- a/tests/transaction_test_util.go +++ b/tests/transaction_test_util.go @@ -86,6 +86,9 @@ func (tt *TransactionTest) Run(config *params.ChainConfig) error { if requiredGas > tx.Gas() { return sender, hash, 0, fmt.Errorf("insufficient gas ( %d < %d )", tx.Gas(), requiredGas) } + if auth := tx.SetCodeAuthorizations(); auth != nil && len(auth) == 0 { + return sender, hash, requiredGas, fmt.Errorf("missing authorization") + } hash = tx.Hash() return sender, hash, requiredGas, nil }