Skip to content

feat(txe): add option to authorize all utility call targets#24662

Merged
nchamo merged 2 commits into
merge-train/fairies-v5from
nchamo/f-733-add-an-authorize-all-utility-call-targets-option-to-the-txe
Jul 13, 2026
Merged

feat(txe): add option to authorize all utility call targets#24662
nchamo merged 2 commits into
merge-train/fairies-v5from
nchamo/f-733-add-an-authorize-all-utility-call-targets-option-to-the-txe

Conversation

@nchamo

@nchamo nchamo commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Motivation

Every TXE test making a cross-contract utility call has to list the exact target addresses on each call's options, even when the test doesn't care about authorization. The targets can also be internal to the called contract, so tests end up encoding the callee's call graph. Suggested by @nventuro in the #24040 review.

The change

  • TestEnvironmentOptions gains with_all_utility_call_targets_authorized(). When set, the simulated wallet authorizes every cross-contract utility call for the entire test.
  • Backed by a new aztec_txe_setAuthorizeAllUtilityCallTargets oracle. TXE oracle minor version bumped.
  • Per-call with_authorized_utility_call_targets still works, and cross-contract utility calls stay denied by default.

Fixes F-733

@nchamo nchamo self-assigned this Jul 13, 2026
@nchamo nchamo added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure labels Jul 13, 2026
@nchamo nchamo marked this pull request as ready for review July 13, 2026 18:20
@nchamo nchamo requested a review from nventuro as a code owner July 13, 2026 18:20
@nchamo nchamo requested a review from vezenovm July 13, 2026 18:20
Comment thread noir-projects/noir-contracts/contracts/test/nested_utility_contract/src/test.nr Outdated
@nchamo nchamo enabled auto-merge (squash) July 13, 2026 20:53
@nchamo nchamo merged commit 97b4c75 into merge-train/fairies-v5 Jul 13, 2026
12 checks passed
@nchamo nchamo deleted the nchamo/f-733-add-an-authorize-all-utility-call-targets-option-to-the-txe branch July 13, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants