@@ -28,6 +28,7 @@ import {
2828
2929import type { ExecutionDataProvider } from '../execution_data_provider.js' ;
3030import type { ExecutionNoteCache } from '../execution_note_cache.js' ;
31+ import { ExecutionTaggingIndexCache } from '../execution_tagging_index_cache.js' ;
3132import type { HashedValuesCache } from '../hashed_values_cache.js' ;
3233import { pickNotes } from '../pick_notes.js' ;
3334import type { IPrivateExecutionOracle , NoteData } from './interfaces.js' ;
@@ -75,6 +76,7 @@ export class PrivateExecutionOracle extends UtilityExecutionOracle implements IP
7576 capsules : Capsule [ ] ,
7677 private readonly executionCache : HashedValuesCache ,
7778 private readonly noteCache : ExecutionNoteCache ,
79+ private readonly taggingIndexCache : ExecutionTaggingIndexCache ,
7880 executionDataProvider : ExecutionDataProvider ,
7981 private totalPublicCalldataCount : number = 0 ,
8082 protected sideEffectCounter : number = 0 ,
@@ -192,6 +194,11 @@ export class PrivateExecutionOracle extends UtilityExecutionOracle implements IP
192194 * @returns An app tag to be used in a log.
193195 */
194196 public async privateGetNextAppTagAsSender ( sender : AztecAddress , recipient : AztecAddress ) : Promise < Fr > {
197+ // here we would check if we have the index in cache and if so, return it from there.
198+ // --> If not, we would call the executionDataProvider.getNextAppTagAsSender.
199+
200+ // What do I need to store in cache? Just { contractAddress-sender-recipient: index }
201+
195202 return await this . executionDataProvider . getNextAppTagAsSender ( this . contractAddress , sender , recipient ) ;
196203 }
197204
0 commit comments