@@ -22,7 +22,7 @@ impl Tx for Signed<alloy::consensus::TxLegacy> {
22
22
authorization_list,
23
23
} = tx_env;
24
24
* caller = self . recover_signer ( ) . unwrap ( ) ;
25
- * gas_limit = self . tx ( ) . gas_limit as u64 ;
25
+ * gas_limit = self . tx ( ) . gas_limit ;
26
26
* gas_price = U256 :: from ( self . tx ( ) . gas_price ) ;
27
27
* transact_to = self . tx ( ) . to ;
28
28
* value = self . tx ( ) . value ;
@@ -55,7 +55,7 @@ impl Tx for Signed<alloy::consensus::TxEip2930> {
55
55
authorization_list,
56
56
} = tx_env;
57
57
* caller = self . recover_signer ( ) . unwrap ( ) ;
58
- * gas_limit = self . tx ( ) . gas_limit as u64 ;
58
+ * gas_limit = self . tx ( ) . gas_limit ;
59
59
* gas_price = U256 :: from ( self . tx ( ) . gas_price ) ;
60
60
* transact_to = self . tx ( ) . to ;
61
61
* value = self . tx ( ) . value ;
@@ -88,7 +88,7 @@ impl Tx for Signed<alloy::consensus::TxEip1559> {
88
88
authorization_list,
89
89
} = tx_env;
90
90
* caller = self . recover_signer ( ) . unwrap ( ) ;
91
- * gas_limit = self . tx ( ) . gas_limit as u64 ;
91
+ * gas_limit = self . tx ( ) . gas_limit ;
92
92
* gas_price = U256 :: from ( self . tx ( ) . max_fee_per_gas ) ;
93
93
* transact_to = self . tx ( ) . to ;
94
94
* value = self . tx ( ) . value ;
@@ -121,7 +121,7 @@ impl Tx for Signed<alloy::consensus::TxEip4844> {
121
121
authorization_list,
122
122
} = tx_env;
123
123
* caller = self . recover_signer ( ) . unwrap ( ) ;
124
- * gas_limit = self . tx ( ) . gas_limit as u64 ;
124
+ * gas_limit = self . tx ( ) . gas_limit ;
125
125
* gas_price = U256 :: from ( self . tx ( ) . max_fee_per_gas ) ;
126
126
* transact_to = self . tx ( ) . to . into ( ) ;
127
127
* value = self . tx ( ) . value ;
@@ -154,7 +154,7 @@ impl Tx for Signed<alloy::consensus::TxEip4844WithSidecar> {
154
154
authorization_list,
155
155
} = tx_env;
156
156
* caller = self . recover_signer ( ) . unwrap ( ) ;
157
- * gas_limit = self . tx ( ) . tx . gas_limit as u64 ;
157
+ * gas_limit = self . tx ( ) . tx . gas_limit ;
158
158
* gas_price = U256 :: from ( self . tx ( ) . tx . max_fee_per_gas ) ;
159
159
* transact_to = self . tx ( ) . tx . to . into ( ) ;
160
160
* value = self . tx ( ) . tx . value ;
@@ -191,7 +191,7 @@ impl Tx for Signed<alloy::consensus::TxEip4844Variant> {
191
191
alloy:: consensus:: TxEip4844Variant :: TxEip4844WithSidecar ( tx) => & tx. tx ,
192
192
} ;
193
193
* caller = self . recover_signer ( ) . unwrap ( ) ;
194
- * gas_limit = tx. gas_limit as u64 ;
194
+ * gas_limit = tx. gas_limit ;
195
195
* gas_price = U256 :: from ( tx. max_fee_per_gas ) ;
196
196
* transact_to = tx. to . into ( ) ;
197
197
* value = tx. value ;
@@ -240,7 +240,7 @@ impl Block for alloy::consensus::Header {
240
240
* prevrandao = if self . difficulty . is_zero ( ) { Some ( self . mix_hash ) } else { None } ;
241
241
242
242
if let Some ( excess_blob_gas) = self . excess_blob_gas {
243
- block_env. set_blob_excess_gas_and_price ( excess_blob_gas as u64 ) ;
243
+ block_env. set_blob_excess_gas_and_price ( excess_blob_gas) ;
244
244
}
245
245
}
246
246
@@ -268,8 +268,7 @@ impl Block for alloy::rpc::types::eth::Header {
268
268
* basefee = U256 :: from ( self . base_fee_per_gas . unwrap_or_default ( ) ) ;
269
269
* difficulty = U256 :: from ( self . difficulty ) ;
270
270
* prevrandao = self . mix_hash ;
271
- * blob_excess_gas_and_price =
272
- self . blob_gas_used . map ( |ebg| BlobExcessGasAndPrice :: new ( ebg as u64 ) ) ;
271
+ * blob_excess_gas_and_price = self . blob_gas_used . map ( BlobExcessGasAndPrice :: new) ;
273
272
}
274
273
}
275
274
0 commit comments