Skip to content

Commit

Permalink
Update _utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Jan 3, 2025
1 parent 99b5da2 commit eb77db9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1969,10 +1969,6 @@ export function latestGasPriceCache(chainId: number) {
* @returns The gas price in the native currency of the chain
*/
export async function getMaxFeePerGas(chainId: number): Promise<BigNumber> {
if (sdk.utils.chainIsOPStack(chainId)) {
const l2Provider = asL2Provider(getProvider(chainId));
return l2Provider.getGasPrice();
}
const { maxFeePerGas } = await sdk.gasPriceOracle.getGasPriceEstimate(
getProvider(chainId),
{
Expand Down

0 comments on commit eb77db9

Please sign in to comment.