feat(aztec.js): cheatcode helpers for contract overrides#22899
Closed
dbanks12 wants to merge 1 commit into
Closed
Conversation
f3e666c to
1c5e1ff
Compare
34b5ec8 to
d657406
Compare
1c5e1ff to
4587e4a
Compare
d657406 to
2a51638
Compare
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced May 1, 2026
4587e4a to
e19009b
Compare
57da1ed to
4f657a1
Compare
e19009b to
8fb3a6f
Compare
4f657a1 to
94a9bd7
Compare
8fb3a6f to
b16c77b
Compare
94a9bd7 to
ea6fc89
Compare
b16c77b to
d590ce8
Compare
ea6fc89 to
6a9de00
Compare
053b77a to
f22f962
Compare
6a9de00 to
1842612
Compare
f22f962 to
a850ebc
Compare
1842612 to
74689e5
Compare
a850ebc to
f5b39b0
Compare
74689e5 to
6fe5c42
Compare
f5b39b0 to
fa5f0a0
Compare
6fe5c42 to
875cc17
Compare
Adds two low-level helpers for building `ContractStateOverrides` blobs: spoofContractClassPublish(class) ↔ publishContractClass spoofContractInstancePublish(instance) ↔ publishInstance `spoofContractInstancePublish` validates that the instance's current and original class IDs match. Divergence requires a coherent registry-storage override - use `fastForwardContractUpdate` (downstack) for that case. The other helpers from the original draft (`spoofContractDeployment`, `spoofContractUpdate`, `spoofContractUpdateWithClassId`) are dropped: deployment requires nullifier overrides not yet plumbed, and the update helpers are subsumed by `fastForwardContractUpdate`.
875cc17 to
13497a2
Compare
fa5f0a0 to
63c07f5
Compare
This was referenced May 4, 2026
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
Adds two low-level cheatcode primitives for building
ContractStateOverridesblobs:spoofContractClassPublish(class)↔publishContractClassspoofContractInstancePublish(instance)↔publishInstancespoofContractInstancePublishvalidates that the instance's current and original class IDs match. Divergence requires a coherent registry-storage override; usefastForwardContractUpdate(#22905) for that case.Earlier-draft helpers
spoofContractDeployment,spoofContractUpdate, andspoofContractUpdateWithClassIdare dropped: deployment needs nullifier overrides which aren't plumbed yet, and the update helpers are fully subsumed byfastForwardContractUpdatein #22905.Stacks above #22833.