Skip to content

Commit

Permalink
chore: use staticCall
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Oct 21, 2024
1 parent 5c0f14f commit aba7ab9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/indexer/src/services/BundleBuilderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,13 @@ export class BundleBuilderService extends BaseIndexer {
// Resolve the liquid reserve for the given L1Token stored in the
// pooledTokens structure at the end of the last executed bundle
// range for mainnet
const { liquidReserves } = await hubPoolContract.pooledTokens(l1Token, {
blockTag:
executedBundle.proposal.bundleEvaluationBlockNumbers[
CHAIN_IDs.MAINNET
]!,
});
const { liquidReserves } =
await hubPoolContract.callStatic.pooledTokens(l1Token, {
blockTag:
executedBundle.proposal.bundleEvaluationBlockNumbers[
CHAIN_IDs.MAINNET
]!,
});
// Resolve the current and proposed bundle data for the given L1Token from
// redis
const [currentBundleData, proposedBundleData] = await Promise.all([
Expand Down

0 comments on commit aba7ab9

Please sign in to comment.