mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
internal/ethapi: use access list type if access list not empty
This commit is contained in:
parent
8e2107dc39
commit
7a76c0a108
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue