File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ extern crate alloc;
19
19
20
20
use crate :: execute:: BasicBlockBuilder ;
21
21
use alloc:: vec:: Vec ;
22
- use alloy_eips:: { eip2930:: AccessList , eip4895:: Withdrawals } ;
22
+ use alloy_eips:: {
23
+ eip2718:: { EIP2930_TX_TYPE_ID , LEGACY_TX_TYPE_ID } ,
24
+ eip2930:: AccessList ,
25
+ eip4895:: Withdrawals ,
26
+ } ;
23
27
use alloy_evm:: {
24
28
block:: { BlockExecutorFactory , BlockExecutorFor } ,
25
29
precompiles:: PrecompilesMap ,
@@ -358,6 +362,12 @@ impl TransactionEnv for TxEnv {
358
362
359
363
fn set_access_list ( & mut self , access_list : AccessList ) {
360
364
self . access_list = access_list;
365
+
366
+ if self . tx_type == LEGACY_TX_TYPE_ID {
367
+ // if this was previously marked as legacy tx, this must be upgraded to eip2930 with an
368
+ // accesslist
369
+ self . tx_type = EIP2930_TX_TYPE_ID ;
370
+ }
361
371
}
362
372
}
363
373
You can’t perform that action at this time.
0 commit comments