Skip to content

feat!: add immutables_hash to contract instance#23091

Open
IlyasRidhuan wants to merge 3 commits into
merge-train/avmfrom
ir/04-30-feat_add_immutables_hash_to_contract_instance
Open

feat!: add immutables_hash to contract instance#23091
IlyasRidhuan wants to merge 3 commits into
merge-train/avmfrom
ir/04-30-feat_add_immutables_hash_to_contract_instance

Conversation

@IlyasRidhuan
Copy link
Copy Markdown
Contributor

@IlyasRidhuan IlyasRidhuan commented May 8, 2026

Part 1 of the immutables_hash changes as part of AZIP-9

This pr just adds the immutables_hash field to the various ContractInstance structs across the codebase.

It also updates the publish_contract_instance function and bumps various constants forContractInstance versions and PXE_DATA_SCHEMA_VERSION

Copy link
Copy Markdown
Contributor Author

IlyasRidhuan commented May 8, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@IlyasRidhuan IlyasRidhuan force-pushed the ir/04-30-feat_add_immutables_hash_to_contract_instance branch from ab7fc16 to 30d8c61 Compare May 11, 2026 16:30
* caller.current_class_id,
* caller.init_hash // situational - only if caller needs it
* caller.init_hash, // situational - only if caller needs it
* caller.immutables_hash // situational - only if caller needs it
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabled here but only properly used in the PR that adds immutable_hash retrievability as an opcode

@IlyasRidhuan IlyasRidhuan marked this pull request as ready for review May 12, 2026 12:54
@IlyasRidhuan IlyasRidhuan removed the request for review from LeilaWang May 12, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant