Skip to content

Commit

Permalink
feat(polygon): add chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Sep 21, 2023
1 parent a60f6aa commit 81fe89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl<P: ProviderLike> FeeEstimator<P> {
async fn get_priority_fee(&self) -> anyhow::Result<U256> {
if POLYGON_CHAIN_IDS.contains(&self.chain_id) {
let gas_oracle =
Polygon::new(Arc::clone(&self.provider), self.chain).category(GasCategory::Fast);
Polygon::new(Arc::clone(&self.provider), self.chain_id).category(GasCategory::Fast);

let fees = gas_oracle.estimate_eip1559_fees().await?;
Ok(fees.1)
Expand Down

0 comments on commit 81fe89c

Please sign in to comment.