Skip to content

blockifier: get compiled class hash v2 state reader and contract manager #8432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

AvivYossef-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

github-actions bot commented Aug 5, 2025

Artifacts upload workflows:

Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1)

Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

    fn get_compiled_class_hash_v2(&self, class_hash: ClassHash) -> StateResult<CompiledClassHash> {
        self.state_reader.get_compiled_class_hash_v2(class_hash)

Isn't it to call the contract_class_manager get_execution_class_v2 directly?

Code quote:

self.state_reader.get_compiled_class_hash_v2(class_hash)

Copy link
Collaborator

@meship-starkware meship-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @noaov1)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

Isn't it to call the contract_class_manager get_execution_class_v2 directly?

Isn't it better*

@noaov1 noaov1 requested a review from meship-starkware August 5, 2025 16:16
Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

Isn't it better*

I agree.

Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @noaov1)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

Previously, noaov1 (Noa Oved) wrote…

I agree.

You are confused with the class_manager that Papyrus has.
This contractClassManager hasn't get_execution_class_v2

Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @meship-starkware)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

Previously, AvivYossef-starkware wrote…

You are confused with the class_manager that Papyrus has.
This contractClassManager hasn't get_execution_class_v2

But will have if we add a cache, no?

Copy link
Contributor Author

@AvivYossef-starkware AvivYossef-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @noaov1)


crates/blockifier/src/state/state_reader_and_contract_manager.rs line 105 at r1 (raw file):

Previously, noaov1 (Noa Oved) wrote…

But will have if we add a cache, no?

I'm working on it in different PRs, but we first should decide how to solve the issue I mentioned

@AvivYossef-starkware AvivYossef-starkware added this pull request to the merge queue Aug 6, 2025
Merged via the queue into main-v0.14.1 with commit 5da5410 Aug 6, 2025
20 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants