From 7a76c0a1088db0bec2665a79a2755a7e2431587c Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Fri, 24 Apr 2026 00:26:49 +0800 Subject: [PATCH] internal/ethapi: use access list type if access list not empty --- internal/ethapi/transaction_args.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 4fb30e6289..3f58616a31 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -513,6 +513,9 @@ func (args *TransactionArgs) ToTransaction(defaultType int) *types.Transaction { // Make it possible to default to newer tx, but use legacy if gasprice is provided if args.GasPrice != nil { usedType = types.LegacyTxType + if args.AccessList != nil { + usedType = types.AccessListTxType + } } var data types.TxData switch usedType {