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

build(fee): add l2_gas field to gas vector #113

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

nimrod-starkware
Copy link
Contributor

@nimrod-starkware nimrod-starkware commented Jul 25, 2024

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information


This change is Reviewable

Copy link
Contributor Author

@nimrod-starkware nimrod-starkware left a comment

Choose a reason for hiding this comment

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

python side PR

Reviewable status: 0 of 8 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

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 8 of 8 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware)


crates/blockifier/src/fee/actual_cost_test.rs line 276 at r1 (raw file):

            .get_state_changes_cost(use_kzg_da)
            .l1_data_gas,
        ..Default::default()

indent

Suggestion:

    ..Default::default()

crates/blockifier/src/transaction/transactions_test.rs line 1869 at r1 (raw file):

    // (currently matches only starknet resources).
    let expected_gas = match use_kzg_da {
        true => GasVector { l1_gas: 16023, l1_data_gas: 128, ..Default::default() },

being explicit makes more sense here IMO

Suggestion:

, l2_gas: 0

Copy link
Contributor Author

@nimrod-starkware nimrod-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)


crates/blockifier/src/fee/actual_cost_test.rs line 276 at r1 (raw file):

Previously, dorimedini-starkware wrote…

indent

The auto formatter keeps it that way; the .,Default::default() refers to l2_gas which is at the indentation level as the other fields in GasVector


crates/blockifier/src/transaction/transactions_test.rs line 1869 at r1 (raw file):

Previously, dorimedini-starkware wrote…

being explicit makes more sense here IMO

Done.

@nimrod-starkware nimrod-starkware force-pushed the nimrod/add_l2_gas_to_gas_vector/add_zero branch from 932bdce to 6e85206 Compare July 29, 2024 09:06
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 r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware)

a discussion (no related file):
blocking until python side passes..



crates/blockifier/src/fee/actual_cost_test.rs line 276 at r1 (raw file):

Previously, nimrod-starkware wrote…

The auto formatter keeps it that way; the .,Default::default() refers to l2_gas which is at the indentation level as the other fields in GasVector

ah! right you are

@nimrod-starkware nimrod-starkware force-pushed the nimrod/add_l2_gas_to_gas_vector/add_zero branch from 6e85206 to 73c7b0d Compare August 5, 2024 08:23
@nimrod-starkware nimrod-starkware force-pushed the nimrod/add_l2_gas_to_gas_vector/add_zero branch from 73c7b0d to 2162307 Compare August 5, 2024 08:34
Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 76.87%. Comparing base (fe93a3b) to head (2162307).
Report is 31 commits behind head on main.

Files Patch % Lines
crates/blockifier/src/transaction/objects.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #113      +/-   ##
==========================================
- Coverage   76.89%   76.87%   -0.03%     
==========================================
  Files         316      316              
  Lines       34504    34517      +13     
  Branches    34504    34517      +13     
==========================================
+ Hits        26532    26534       +2     
- Misses       5687     5696       +9     
- Partials     2285     2287       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor Author

@nimrod-starkware nimrod-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: 7 of 8 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)

a discussion (no related file):

Previously, dorimedini-starkware wrote…

blocking until python side passes..

hodor passed


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.

:lgtm:

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

@nimrod-starkware nimrod-starkware merged commit a9f7e6b into main Aug 11, 2024
25 checks passed
@nimrod-starkware nimrod-starkware deleted the nimrod/add_l2_gas_to_gas_vector/add_zero branch August 11, 2024 08:47
@github-actions github-actions bot locked and limited conversation to collaborators Aug 13, 2024
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.

2 participants