Skip to content

Commit

Permalink
Fix fee manager init
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 committed Feb 22, 2024
1 parent 312856d commit 7785e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zp-relayer/relayer/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Params } from 'libzkbob-rs-node'
import config from '../configs/relayerConfig'
import { Circuit, IProver, LocalProver, ProverType, RemoteProver } from '../prover'
import { DynamicFeeManager, FeeManager, FeeManagerType, OptimismFeeManager, StaticFeeManager } from '../services/fee'
import { EvmBackend, isEthereum, Network, NetworkBackend, TransactionManager } from '../services/network'
import { EvmBackend, Network, NetworkBackend, TransactionManager, isEthereum } from '../services/network'
import { NativePriceFeed, OneInchPriceFeed, PriceFeedType } from '../services/price-feed'
import type { IPriceFeed } from '../services/price-feed/IPriceFeed'
import { redis } from '../services/redisClient'
Expand Down Expand Up @@ -124,6 +124,7 @@ export async function init() {
case FeeManagerType.Dynamic: {
if (!isEthereum(networkBackend)) throw new Error('Dynamic fee manager is supported only for Ethereum')
feeManager = new DynamicFeeManager(managerConfig, (txManager as EvmTxManager).gasPrice)
break
}
case FeeManagerType.Optimism: {
if (!isEthereum(networkBackend)) throw new Error('Dynamic fee manager is supported only for Ethereum')
Expand Down

0 comments on commit 7785e49

Please sign in to comment.