From 0af27f4892aa1dab2052b950d84d9ba61a1f1d38 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 28 Feb 2024 15:06:07 +0100 Subject: [PATCH] minor --- internal/ethapi/api_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 662e3da754..8ffa638a6b 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -1272,14 +1272,13 @@ func TestFillBlobTransaction(t *testing.T) { func argsFromTransaction(tx *types.Transaction, from common.Address) TransactionArgs { var ( - gas = tx.Gas() - nonce = tx.Nonce() - input = tx.Data() - accessList = (*types.AccessList)(nil) - txAccessList = tx.AccessList() + gas = tx.Gas() + nonce = tx.Nonce() + input = tx.Data() + accessList *types.AccessList ) - if txAccessList != nil { - accessList = &txAccessList + if acl := tx.AccessList(); acl != nil { + accessList = &acl } return TransactionArgs{ From: &from,