Skip to content

chore: backport #21754 (feat!: make isContractInitialized a tri-state enum) to v4-next - #21792

Merged
nchamo merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21754-tri-state-enum
Mar 19, 2026
Merged

chore: backport #21754 (feat!: make isContractInitialized a tri-state enum) to v4-next#21792
nchamo merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-21754-tri-state-enum

Conversation

@AztecBot

@AztecBot AztecBot commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of #21754 to v4-next.

Replaces ContractMetadata.isContractInitialized (boolean | undefined) with ContractMetadata.initializationStatus (ContractInitializationStatus enum: INITIALIZED, UNINITIALIZED, UNKNOWN). When the instance is not registered, the wallet now falls back to checking the public initialization nullifier before returning UNKNOWN.

Cherry-pick conflicts

Two doc files conflicted due to version-specific differences between next and v4-next:

  • docs/developer_versioned_docs/.../how_to_create_account.md — kept v4-next's newAccount.address variable name, applied the initializationStatus field rename
  • docs/examples/ts/aztecjs_connection/index.ts — kept v4-next's existing structure (which already has the deploy sections), applied the field rename, dropped the duplicate incoming sections that use feeJuiceAccount

Commit structure

  1. Cherry-pick commit with conflict markers preserved
  2. Conflict resolution commit

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 19, 2026
@AztecBot
AztecBot force-pushed the claudebox/backport-21754-tri-state-enum branch from 9f45f3c to e6497c1 Compare March 19, 2026 14:40
@nchamo
nchamo marked this pull request as ready for review March 19, 2026 14:44
@nchamo
nchamo requested a review from a team as a code owner March 19, 2026 14:44
@nchamo nchamo self-assigned this Mar 19, 2026
@nchamo
nchamo enabled auto-merge (squash) March 19, 2026 14:51
@AztecBot

Copy link
Copy Markdown
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/9e1d8890c63f6206�9e1d8890c63f62068;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_invalidate_block.parallel.test.ts "proposer invalidates previous block with shuffled attestations" (186s) (code: 0) group:e2e-p2p-epoch-flakes

@nchamo
nchamo merged commit d023d3f into backport-to-v4-next-staging Mar 19, 2026
16 of 19 checks passed
@nchamo
nchamo deleted the claudebox/backport-21754-tri-state-enum branch March 19, 2026 15:02
AztecBot added a commit that referenced this pull request Mar 21, 2026
BEGIN_COMMIT_OVERRIDE
chore: backport #21754 (feat!: make isContractInitialized a tri-state
enum) to v4-next (#21792)
fix(stdlib): zero-pad bufferFromFields when declared length exceeds
payload (#21802)
test(protocol-contracts): verify max-size bytecode fits in contract
class log (#21818)
chore: port P2P mesh topic deflake fix to v4-next (#21825)
fix(archiver): throw on duplicate contract class or instance additions
(#21799)
feat: sync poseidon in the browser (#21833)
chore: backport #21824 (fix(aztec-up): add sensible defaults to
installer y/n prompts) to v4-next (#21844)
fix(sequencer): backport wall-clock time for slot estimation to v4-next
(#21769) (#21847)
chore: backport PR #21788 (feat(p2p): add tx validation for contract
class id verification) to v4-next (#21852)
feat: sync poseidon browser (#21851)
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.

2 participants