Commit 4e784602 authored by Kevin Chen's avatar Kevin Chen

Remove a TODO as it is obvious.

parent 5b3494a7
...@@ -1003,10 +1003,10 @@ export class CrossChainMessenger { ...@@ -1003,10 +1003,10 @@ export class CrossChainMessenger {
* @returns Current challenge period in seconds. * @returns Current challenge period in seconds.
*/ */
public async getChallengePeriodSeconds(): Promise<number> { public async getChallengePeriodSeconds(): Promise<number> {
// TODO: remove this once bedrock launches on mainnet.
if (!this.bedrock) { if (!this.bedrock) {
return (await this.contracts.l1.StateCommitmentChain.FRAUD_PROOF_WINDOW()).toNumber() return (await this.contracts.l1.StateCommitmentChain.FRAUD_PROOF_WINDOW()).toNumber()
} }
const oracle_version = await this.contracts.l1.L2OutputOracle.version() const oracle_version = await this.contracts.l1.L2OutputOracle.version()
const challengePeriod = oracle_version === '1.0.0' const challengePeriod = oracle_version === '1.0.0'
? BigNumber.from(await this.contracts.l1.OptimismPortal.provider.call({ ? BigNumber.from(await this.contracts.l1.OptimismPortal.provider.call({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment