@@ -133,8 +133,8 @@ pub struct MockTransaction {
133
133
pub s : Option < Word > ,
134
134
pub transaction_type : U64 ,
135
135
pub access_list : AccessList ,
136
- pub max_priority_fee_per_gas : Word ,
137
- pub max_fee_per_gas : Word ,
136
+ pub max_priority_fee_per_gas : Option < Word > ,
137
+ pub max_fee_per_gas : Option < Word > ,
138
138
pub chain_id : Word ,
139
139
pub invalid : bool ,
140
140
}
@@ -158,8 +158,8 @@ impl Default for MockTransaction {
158
158
s : None ,
159
159
transaction_type : U64 :: zero ( ) ,
160
160
access_list : AccessList :: default ( ) ,
161
- max_priority_fee_per_gas : Word :: zero ( ) ,
162
- max_fee_per_gas : Word :: zero ( ) ,
161
+ max_priority_fee_per_gas : None ,
162
+ max_fee_per_gas : None ,
163
163
chain_id : * MOCK_CHAIN_ID ,
164
164
invalid : false ,
165
165
}
@@ -185,8 +185,8 @@ impl From<MockTransaction> for Transaction {
185
185
s : mock. s . unwrap_or_default ( ) ,
186
186
transaction_type : Some ( mock. transaction_type ) ,
187
187
access_list : Some ( mock. access_list ) ,
188
- max_priority_fee_per_gas : Some ( mock. max_priority_fee_per_gas ) ,
189
- max_fee_per_gas : Some ( mock. max_fee_per_gas ) ,
188
+ max_priority_fee_per_gas : mock. max_priority_fee_per_gas ,
189
+ max_fee_per_gas : mock. max_fee_per_gas ,
190
190
chain_id : Some ( mock. chain_id ) ,
191
191
other : OtherFields :: default ( ) ,
192
192
}
@@ -289,13 +289,13 @@ impl MockTransaction {
289
289
290
290
/// Set max_priority_fee_per_gas field for the MockTransaction.
291
291
pub fn max_priority_fee_per_gas ( & mut self , max_priority_fee_per_gas : Word ) -> & mut Self {
292
- self . max_priority_fee_per_gas = max_priority_fee_per_gas;
292
+ self . max_priority_fee_per_gas = Some ( max_priority_fee_per_gas) ;
293
293
self
294
294
}
295
295
296
296
/// Set max_fee_per_gas field for the MockTransaction.
297
297
pub fn max_fee_per_gas ( & mut self , max_fee_per_gas : Word ) -> & mut Self {
298
- self . max_fee_per_gas = max_fee_per_gas;
298
+ self . max_fee_per_gas = Some ( max_fee_per_gas) ;
299
299
self
300
300
}
301
301
0 commit comments