Skip to content

Commit

Permalink
fix: add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Oct 23, 2024
1 parent dca5b35 commit 07e0218
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion yarn-project/aztec.js/src/utils/cheat_codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,16 @@ export class RollupCheatCodes {
return await this.rollup.read.getEpochAtSlot([slotNumber]);
}

public async getTips(): Promise<{ pending: bigint; proven: bigint }> {
/**
* Returns the pending and proven chain tips
* @returns The pending and proven chain tips
*/
public async getTips(): Promise<{
/** The pending chain tip */
pending: bigint;
/** The proven chain tip */
proven: bigint;
}> {
const [pending, proven] = await this.rollup.read.tips();
return { pending, proven };
}
Expand Down

0 comments on commit 07e0218

Please sign in to comment.