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): take gas_consumed for CallInfo directly from CallResult #3110

Conversation

TzahiTaub
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@TzahiTaub TzahiTaub marked this pull request as ready for review January 5, 2025 10:31
Copy link
Contributor Author

TzahiTaub commented Jan 5, 2025

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from 107d854 to 5509def Compare January 5, 2025 10:44
@TzahiTaub TzahiTaub self-assigned this Jan 5, 2025
@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from 5509def to 90a3706 Compare January 5, 2025 11:07
Copy link
Collaborator

@Yoni-Starkware Yoni-Starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 4 files at r1, 3 of 3 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from 90a3706 to f8d0c84 Compare January 5, 2025 12:15
Copy link
Collaborator

@Yoni-Starkware Yoni-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 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

Copy link
Collaborator

@Yoni-Starkware Yoni-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 @dorimedini-starkware and @TzahiTaub)


crates/blockifier/src/execution/call_info.rs line 236 at r4 (raw file):

    ) -> ExecutionResources {
        // Note: the vm resources (and entire charged resources) of a call contains the inner call
        // resources, unlike other fields such as events and messages,

Suggestion:

ents and messages.

Copy link
Collaborator

@Yoni-Starkware Yoni-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, 2 unresolved discussions (waiting on @dorimedini-starkware and @TzahiTaub)


crates/blockifier/src/execution/native/entry_point_execution.rs line 134 at r4 (raw file):

            gas_consumed,
        },
        resources: vm_resources,

It's not the type in CallInfo

Code quote:

resources: vm_resources,

Copy link
Contributor Author

@TzahiTaub TzahiTaub 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, 2 unresolved discussions (waiting on @dorimedini-starkware and @Yoni-Starkware)


crates/blockifier/src/execution/native/entry_point_execution.rs line 134 at r4 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

It's not the type in CallInfo

Yes, got confused with the next PR somehow. Reverting.

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from f8d0c84 to 78ed7ec Compare January 5, 2025 13:00
Copy link
Collaborator

@Yoni-Starkware Yoni-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 3 of 3 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch 2 times, most recently from e8455bc to 5d3c324 Compare January 5, 2025 13:59
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 all commit messages.
Reviewable status: 5 of 6 files reviewed, all discussions resolved (waiting on @Yoni-Starkware)

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from 5d3c324 to e9026be Compare January 5, 2025 14:41
Copy link
Collaborator

@dorimedini-starkware dorimedini-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 r7, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@TzahiTaub TzahiTaub force-pushed the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch from e9026be to ae39c25 Compare January 5, 2025 16:50
Copy link
Collaborator

@Yoni-Starkware Yoni-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 r8, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

Copy link
Collaborator

@dorimedini-starkware dorimedini-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 all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

@TzahiTaub TzahiTaub merged commit 0dd87a8 into main-v0.13.4 Jan 6, 2025
11 checks passed
@TzahiTaub TzahiTaub deleted the 01-05-feat_blockifier_take_gas_consumed_for_callinfo_directly_from_callresult branch January 6, 2025 07:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 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