Skip to content

Commit 834ca00

Browse files
committed
chore(fast-inbox): format ethereum inbox contract wrapper (A-1388)
1 parent 95aa810 commit 834ca00

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • yarn-project/ethereum/src/contracts

yarn-project/ethereum/src/contracts/inbox.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ export class InboxContract {
8080
}
8181

8282
/** Returns the Inbox bucket with the given sequence number (AZIP-22 Fast Inbox). */
83-
public async getBucket(seq: bigint, opts: { blockTag?: BlockTag; blockNumber?: bigint } = {}): Promise<InboxContractBucket> {
83+
public async getBucket(
84+
seq: bigint,
85+
opts: { blockTag?: BlockTag; blockNumber?: bigint } = {},
86+
): Promise<InboxContractBucket> {
8487
await checkBlockTag(opts.blockNumber, this.client);
8588
const bucket = await this.inbox.read.getBucket([seq], opts);
8689
return {
@@ -96,7 +99,9 @@ export class InboxContract {
9699
* total are the Inbox's live chain position, used by the archiver's message sync and L1-reorg detection (AZIP-22
97100
* Fast Inbox).
98101
*/
99-
public async getCurrentBucket(opts: { blockTag?: BlockTag; blockNumber?: bigint } = {}): Promise<InboxContractBucket> {
102+
public async getCurrentBucket(
103+
opts: { blockTag?: BlockTag; blockNumber?: bigint } = {},
104+
): Promise<InboxContractBucket> {
100105
const seq = await this.getCurrentBucketSeq(opts);
101106
return this.getBucket(seq, opts);
102107
}

0 commit comments

Comments
 (0)