Skip to content

Commit

Permalink
feat(provider): add support for l1_committed block tag
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Jul 24, 2024
1 parent 9eb1c26 commit 011db1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ export function JsonRpcApiProvider<
override _getBlockTag(blockTag?: BlockTag): string | Promise<string> {
if (blockTag === 'committed') {
return 'committed';
} else if (blockTag === 'l1_committed') {
return 'l1_committed';
}
return super._getBlockTag(blockTag);
}
Expand Down

0 comments on commit 011db1f

Please sign in to comment.