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 {