Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haider-rs committed Jul 2, 2024
1 parent 6dcfb2c commit f44fdb1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions chains/ethereum/server/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ where
let address: H160 = address.address().parse()?;

let (max_fee_per_gas, max_priority_fee_per_gas) =
if self.config().blockchain == String::from("polygon") {
if self.config().blockchain == "polygon" {
self.backend.estimate_eip1559_fees::<PolygonFeeEstimatorConfig>().await?
} else {
self.backend.estimate_eip1559_fees::<DefaultFeeEstimatorConfig>().await?
Expand Down Expand Up @@ -302,12 +302,11 @@ where
) -> Result<EthereumMetadata> {
let from: H160 = public_key.to_address(self.config().address_format).address().parse()?;
let to = options.destination.map(H160);
let (max_fee_per_gas, max_priority_fee_per_gas) =
if self.config().blockchain == String::from("polygon") {
self.backend.estimate_eip1559_fees::<PolygonFeeEstimatorConfig>().await?
} else {
self.backend.estimate_eip1559_fees::<DefaultFeeEstimatorConfig>().await?
};
let (max_fee_per_gas, max_priority_fee_per_gas) = if self.config().blockchain == "polygon" {
self.backend.estimate_eip1559_fees::<PolygonFeeEstimatorConfig>().await?
} else {
self.backend.estimate_eip1559_fees::<DefaultFeeEstimatorConfig>().await?
};
let chain_id = self.backend.chain_id().await?;

let nonce = if let Some(nonce) = options.nonce {
Expand Down

0 comments on commit f44fdb1

Please sign in to comment.