This commit is contained in:
Sina Mahmoodi 2024-02-28 15:06:07 +01:00
parent bde2f0f705
commit 0af27f4892

View file

@ -1272,14 +1272,13 @@ func TestFillBlobTransaction(t *testing.T) {
func argsFromTransaction(tx *types.Transaction, from common.Address) TransactionArgs { func argsFromTransaction(tx *types.Transaction, from common.Address) TransactionArgs {
var ( var (
gas = tx.Gas() gas = tx.Gas()
nonce = tx.Nonce() nonce = tx.Nonce()
input = tx.Data() input = tx.Data()
accessList = (*types.AccessList)(nil) accessList *types.AccessList
txAccessList = tx.AccessList()
) )
if txAccessList != nil { if acl := tx.AccessList(); acl != nil {
accessList = &txAccessList accessList = &acl
} }
return TransactionArgs{ return TransactionArgs{
From: &from, From: &from,