Skip to content

Commit

Permalink
celo doesnt support eth_feeHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgazso committed Nov 18, 2023
1 parent 259efb0 commit c72223c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/utils/src/gasPrice.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GasPriceParameters, gasStationResult } from "@alto/types"
import { PublicClient, parseGwei } from "viem"
import { Logger } from "."
import * as chains from "viem/chains"
import { Logger } from "."

enum ChainId {
Goerli = 5,
Expand Down Expand Up @@ -83,7 +83,8 @@ export async function getGasPrice(
chainId === chains.scrollSepolia.id ||
chainId === chains.arbitrumGoerli.id ||
chainId === chains.mantle.id ||
chainId === chains.mainnet.id
chainId === chains.mainnet.id ||
chainId === chains.celoAlfajores.id
) {
gasPrice = (gasPrice * 10n) / 9n
return {
Expand Down

0 comments on commit c72223c

Please sign in to comment.