Skip to content

refactor: saner public logs oracle#14569

Merged
benesjan merged 9 commits intonextfrom
05-28-refactor_saner_public_logs
May 28, 2025
Merged

refactor: saner public logs oracle#14569
benesjan merged 9 commits intonextfrom
05-28-refactor_saner_public_logs

Conversation

@benesjan
Copy link
Copy Markdown
Contributor

@benesjan benesjan commented May 28, 2025

Public logs are prefixed with contract address and we were returning it like that from get_public_log_by_tag. This was annoying as private logs are not prefixed with it forcing us to treat them differently in #14533. In this PR I drop the contract address and the tag from the return value of the oracle as it's not needed in Aztec.nr.

Decided to drop the tag in the oracle response as opposed to dropping that in Aztec.nr as we directly map there PublicLogWithTxData from TS to Noir so dropping that in Noir would be weird.

Fixes #10273

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@benesjan benesjan force-pushed the 05-28-refactor_saner_public_logs branch from 1afeac3 to fd5bd52 Compare May 28, 2025 09:56
@benesjan benesjan changed the title refactor: saner public logs refactor: saner public logs oracle May 28, 2025
@benesjan benesjan marked this pull request as ready for review May 28, 2025 10:02
@benesjan benesjan requested a review from LeilaWang as a code owner May 28, 2025 10:02
Copy link
Copy Markdown
Contributor

@LeilaWang LeilaWang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@benesjan benesjan requested a review from nventuro May 28, 2025 10:32
Copy link
Copy Markdown
Contributor

@nventuro nventuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be my favourite PR in the month.

Note that you did not remove the tag from PendingTaggedLog, from the fetchTaggedLogs oracle. Do you think we should, for consistency?

@benesjan benesjan marked this pull request as draft May 28, 2025 13:09
benesjan and others added 9 commits May 28, 2025 13:12
…tes.nr

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…s.nr

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
…s.nr

Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com>
@benesjan benesjan force-pushed the 05-28-refactor_saner_public_logs branch from 4465d2d to 519b6d6 Compare May 28, 2025 13:13
@benesjan benesjan marked this pull request as ready for review May 28, 2025 13:20
@benesjan benesjan enabled auto-merge May 28, 2025 13:20
@benesjan benesjan added this pull request to the merge queue May 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 28, 2025
@benesjan benesjan added this pull request to the merge queue May 28, 2025
Merged via the queue into next with commit 2e5446a May 28, 2025
8 checks passed
@benesjan benesjan deleted the 05-28-refactor_saner_public_logs branch May 28, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Silo the first field of public logs

3 participants