Skip to content

Commit

Permalink
watcher: change L1 watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Feb 16, 2024
1 parent 72241b8 commit 5a979b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion watcher/src/watchers/ArbitrumWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export class ArbitrumWatcher extends EVMWatcher {
if (!this.rpc) {
throw new Error(`${this.chain} RPC is not defined!`);
}
this.evmWatcher = new EVMWatcher(network, 'ethereum', 'finalized');
this.evmWatcher =
network === 'mainnet'
? new EVMWatcher(network, 'ethereum', 'finalized')
: new EVMWatcher(network, 'sepolia', 'finalized');
this.latestL2Finalized = 0;
this.l1L2Map = new Map<number, number>();
this.lastEthTime = 0;
Expand Down

0 comments on commit 5a979b1

Please sign in to comment.