Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
adraffy committed Nov 1, 2024
1 parent d5893eb commit 423f439
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion scripts/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/zksync/ZKSyncProver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 423f439

Please sign in to comment.