File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed
crates/networking/rpc/clients/eth Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -210,24 +210,13 @@ impl EthClient {
210
210
' outer: while number_of_retries < MAX_NUMBER_OF_RETRIES {
211
211
if let Some ( max_fee_per_gas) = self . maximum_allowed_max_fee_per_gas {
212
212
let tx_max_fee = match wrapped_tx {
213
- WrappedTransaction :: EIP4844 ( tx) => tx. tx . max_fee_per_gas ,
214
- WrappedTransaction :: EIP1559 ( tx) => tx. max_fee_per_gas ,
215
- WrappedTransaction :: L2 ( tx) => tx. max_fee_per_gas ,
213
+ WrappedTransaction :: EIP4844 ( tx) => & mut tx. tx . max_fee_per_gas ,
214
+ WrappedTransaction :: EIP1559 ( tx) => & mut tx. max_fee_per_gas ,
215
+ WrappedTransaction :: L2 ( tx) => & mut tx. max_fee_per_gas ,
216
216
} ;
217
217
218
- if tx_max_fee > max_fee_per_gas {
219
- match wrapped_tx {
220
- WrappedTransaction :: EIP4844 ( tx) => {
221
- tx. tx . max_fee_per_gas = max_fee_per_gas;
222
- }
223
- WrappedTransaction :: EIP1559 ( tx) => {
224
- tx. max_fee_per_gas = max_fee_per_gas;
225
- }
226
- WrappedTransaction :: L2 ( tx) => {
227
- tx. max_fee_per_gas = max_fee_per_gas;
228
- }
229
- }
230
-
218
+ if * tx_max_fee > max_fee_per_gas {
219
+ * tx_max_fee = max_fee_per_gas;
231
220
warn ! ( "max_fee_per_gas exceeds the allowed limit, adjusting it to {max_fee_per_gas}" ) ;
232
221
}
233
222
}
You can’t perform that action at this time.
0 commit comments