Skip to content

fix: passing in user call info from wallet (backport #21937)#22459

Merged
Thunkar merged 4 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21937-v4-next
Apr 10, 2026
Merged

fix: passing in user call info from wallet (backport #21937)#22459
Thunkar merged 4 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21937-v4-next

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

Backport of #21937 to v4-next.

Robustly handles selection of return value when simulating private function by passing in the information of which call corresponds to the return value "user intends to get" from the wallet via TxSimulationResultWithAppOffset.

Cherry-pick conflicts resolved

  • batch_call.ts: Removed stale TxSimulationResult import, used TxSimulationResultWithAppOffset, added non-null assertions for the now-optional simulatedTx variable
  • batch_call.test.ts: Added NestedProcessReturnValues import (needed by test), removed unused HashedValues

Commit structure

  1. Cherry-pick with conflict markers preserved
  2. Conflict resolution
  3. Build fix (non-null assertions)

Original PR by @benesjan.

ClaudeBox log: https://claudebox.work/s/c28e647e71336658?run=2

benesjan and others added 3 commits April 10, 2026 09:34
Cherry-pick of a186a55 with conflict markers preserved.
Resolved conflicts in batch_call.ts and batch_call.test.ts:
- Removed unused TxSimulationResult and HashedValues imports
- Used TxSimulationResultWithAppOffset type for simulatedTx variable
- Used getPrivateReturnValuesOfAppCall instead of getPrivateReturnValues
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 10, 2026
@Thunkar Thunkar marked this pull request as ready for review April 10, 2026 09:48
@Thunkar Thunkar enabled auto-merge April 10, 2026 09:48
@Thunkar Thunkar merged commit bd96d3f into backport-to-v4-next-staging Apr 10, 2026
11 of 12 checks passed
@Thunkar Thunkar deleted the claudebox/backport-21937-v4-next branch April 10, 2026 17:01
Thunkar added a commit that referenced this pull request Apr 10, 2026
BEGIN_COMMIT_OVERRIDE
cherry-pick: fix: passing in user call info from wallet (#21937)
fix: passing in user call info from wallet (backport #21937) (#22459)
fix: prepopulated scopes in simulateviaentrypoint (#22464)
chore: backport #22464 (fix: prepopulated scopes in
simulateviaentrypoint) to v4-next (#22470)
docs: add macOS prerequisites and improve Node.js version guidance
(#22408)
END_COMMIT_OVERRIDE
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. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants