Skip to content
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

feat(blockifier): add native entry point execution #551

Conversation

varex83
Copy link
Contributor

@varex83 varex83 commented Aug 21, 2024

This PR is follow-up after #549


This change is Reviewable

varex83 added 28 commits August 6, 2024 19:00
# Conflicts:
#	crates/blockifier/src/execution/syscalls/syscalls_test.rs
…cution-engine

# Conflicts:
#	Cargo.lock
#	crates/blockifier/src/execution/contract_class.rs
Copy link
Contributor

@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 4 of 23 files at r1.
Reviewable status: 4 of 23 files reviewed, all discussions resolved

Copy link
Contributor

@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 16 of 23 files at r1, all commit messages.
Reviewable status: 20 of 23 files reviewed, all discussions resolved

Copy link
Contributor

@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: 20 of 23 files reviewed, 1 unresolved discussion (waiting on @varex83)


crates/blockifier/src/execution/native/utils.rs line 87 at r1 (raw file):

    storage_read_values: Vec<Felt>,
    accessed_storage_keys: HashSet<StorageKey, RandomState>,
) -> Result<CallInfo, EntryPointExecutionError> {

Is there a reason for this function to return a Result? It looks like it will always return call info, wouldn't it be better if this function will return CallInfo and the function that calls it will wrap it with Ok?

Copy link
Contributor Author

@varex83 varex83 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: 20 of 23 files reviewed, 1 unresolved discussion (waiting on @meship-starkware)


crates/blockifier/src/execution/native/utils.rs line 87 at r1 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

Is there a reason for this function to return a Result? It looks like it will always return call info, wouldn't it be better if this function will return CallInfo and the function that calls it will wrap it with Ok?

Yeah, that sounds reasonable, it should be done.

Copy link
Contributor

@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 4 files at r6, all commit messages.
Reviewable status: 16 of 23 files reviewed, 1 unresolved discussion

Copy link
Contributor

@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 4 files at r6.
Reviewable status: 17 of 23 files reviewed, 1 unresolved discussion

@rodrigo-pino rodrigo-pino added the native integration Related with the integration of Cairo Native into the Blockifier label Sep 23, 2024
Copy link
Contributor

@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 4 files at r3, 1 of 7 files at r5, 1 of 4 files at r6, 1 of 1 files at r7.
Reviewable status: 21 of 23 files reviewed, all discussions resolved (waiting on @varex83)

@rodrigo-pino
Copy link
Contributor

Solved in #1158

@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
native integration Related with the integration of Cairo Native into the Blockifier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants