Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Nov 20, 2024
1 parent aafef9c commit c52fc20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yarn-project/pxe/src/simulator_oracle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,11 @@ export class SimulatorOracle implements DBOracle {
sender: AztecAddress,
recipient: AztecAddress,
): Promise<IndexedTaggingSecret> {
await this.syncTaggedLogs(contractAddress, await this.aztecNode.getBlockNumber(), [sender]);

const secret = await this.#calculateTaggingSecret(contractAddress, sender, recipient);
const [index] = await this.db.getTaggingSecretsIndexesAsSender([secret]);

return new IndexedTaggingSecret(secret, index);
}

Expand Down

0 comments on commit c52fc20

Please sign in to comment.