File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ use futures::{
94
94
StreamExt ,
95
95
} ;
96
96
use parking_lot:: RwLock ;
97
- use revm:: primitives:: Bytecode ;
97
+ use revm:: primitives:: { eip7702 :: PER_EMPTY_ACCOUNT_COST , Bytecode } ;
98
98
use std:: { future:: Future , sync:: Arc , time:: Duration } ;
99
99
use tokio:: sync:: mpsc:: { unbounded_channel, UnboundedReceiver } ;
100
100
@@ -3208,7 +3208,10 @@ fn determine_base_gas_by_kind(request: &WithOtherFields<TransactionRequest>) ->
3208
3208
TxKind :: Call ( _) => MIN_TRANSACTION_GAS ,
3209
3209
TxKind :: Create => MIN_CREATE_GAS ,
3210
3210
} ,
3211
- TypedTransactionRequest :: EIP7702 ( _) => MIN_TRANSACTION_GAS ,
3211
+ TypedTransactionRequest :: EIP7702 ( req) => {
3212
+ MIN_TRANSACTION_GAS +
3213
+ req. authorization_list . len ( ) as u128 * PER_EMPTY_ACCOUNT_COST as u128
3214
+ }
3212
3215
TypedTransactionRequest :: EIP2930 ( req) => match req. to {
3213
3216
TxKind :: Call ( _) => MIN_TRANSACTION_GAS ,
3214
3217
TxKind :: Create => MIN_CREATE_GAS ,
You can’t perform that action at this time.
0 commit comments