Skip to content

Commit 68eecc3

Browse files
committed
wip
1 parent 2d49f8b commit 68eecc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

yarn-project/pxe/src/contract_function_simulator/pxe_oracle_interface.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ export class PXEOracleInterface implements ExecutionDataProvider {
314314
) {
315315
this.log.verbose('Searching for tagged logs', { contract: contractAddress });
316316

317+
// We only load logs from block up to and including the anchor block number
318+
const anchorBlockNumber = (await this.anchorBlockDataProvider.getBlockHeader()).getBlockNumber();
319+
317320
// Determine recipients: use scopes if provided, otherwise get all accounts
318321
const recipients = scopes && scopes.length > 0 ? scopes : await this.keyStore.getAccounts();
319322

@@ -330,6 +333,7 @@ export class PXEOracleInterface implements ExecutionDataProvider {
330333
contractAddress,
331334
this.aztecNode,
332335
this.newRecipientTaggingDataProvider,
336+
anchorBlockNumber,
333337
),
334338
),
335339
);

0 commit comments

Comments
 (0)