File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
yarn-project/pxe/src/contract_function_simulator Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments