Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest committed Dec 13, 2023
1 parent 30c684c commit d4abbf5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,11 +1020,9 @@ fn fee_details(
request_max_fee_per_gas,
request_priority_fee_per_gas,
) {
(Some(_), Some(_), Some(_)) => {
return Err(internal_err(
"both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified",
));
}
(Some(_), Some(_), Some(_)) => Err(internal_err(
"both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified",
)),
// Legacy or EIP-2930 transaction.
(gas_price, None, None) if gas_price.is_some() => Ok(FeeDetails {
gas_price,
Expand Down

0 comments on commit d4abbf5

Please sign in to comment.