diff --git a/scripts/serve.ts b/scripts/serve.ts index f82cc701..e918d023 100755 --- a/scripts/serve.ts +++ b/scripts/serve.ts @@ -295,7 +295,6 @@ async function createGateway(name: string) { return new Gateway(new ZKSyncRollup(createProviderPair(config), config)); } case 'base': - // return createOPGateway(OPRollup.baseMainnetConfig); return createOPFaultGateway(OPFaultRollup.baseMainnetConfig); case 'base-sepolia': return createOPFaultGateway(OPFaultRollup.baseSepoliaConfig); diff --git a/src/zksync/ZKSyncProver.ts b/src/zksync/ZKSyncProver.ts index 0d1c727a..521fe3fc 100755 --- a/src/zksync/ZKSyncProver.ts +++ b/src/zksync/ZKSyncProver.ts @@ -43,8 +43,7 @@ export class ZKSyncProver extends AbstractProver { return batchIndex + Number(relative); //(typeof relative === 'string' ? 0 : Number(relative)); } static async latest(provider: Provider, relative: BigNumberish = 0) { - const batchIndex = await this.latestBatchIndex(provider, relative); - return new this(provider, batchIndex); + return new this(provider, await this.latestBatchIndex(provider, relative)); } constructor( provider: Provider,