fix(pxe): correct contract class log DA gas metering from +2 to +1#21102
Merged
nventuro merged 1 commit intomerge-train/fairiesfrom Mar 4, 2026
Merged
Conversation
Contract class logs only emit the contract address as an additional field in the blob encoding, not both length and contract address. The circuits (gas_meter.nr, tx_blob_data.nr, sponge_blob.nr) and the TS blob encoder all consistently use +1. This was causing private-only txs with contract class logs to be overcharged by 1 DA field (32 DA gas) per log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
nventuro
approved these changes
Mar 4, 2026
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 5, 2026
BEGIN_COMMIT_OVERRIDE chore: remove prefund env var in non local networks (#21095) feat: aztec new supporting multiple contract crates (#21007) feat!: Expose offchain effects when simulating/sending txs (#20563) chore: exclude auto-generated dirs from VS Code search (#20881) feat: improve oracle name prefixes (#21101) fix(pxe): correct contract class log DA gas metering from +2 to +1 (#21102) chore: remove stale aes comments (#21133) chore: add warning on invalid recipients (#21134) feat: mask ciphertext fields with Poseidon2-derived values (#21009) END_COMMIT_OVERRIDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
+ 2to+ 1for the additional fields per contract class log, matching the circuits (gas_meter.nr, tx_blob_data.nr, sponge_blob.nr) and the TS blob encoder which all use+ 1+ 2was overcharging by 1 DA field (32 DA gas) per logFixes F-377
Test plan
🤖 Generated with Claude Code