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

chore(blockifier): rename the getters for the gas prices struct #2269

Open
wants to merge 1 commit into
base: arni/gas_prices/separate_new_from_validate
Choose a base branch
from

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Nov 25, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

@ArniStarkware ArniStarkware changed the title chore(blockifier) rename the getters for the gas prices struct chore(blockifier): rename the getters for the gas prices struct Nov 25, 2024
@ArniStarkware ArniStarkware force-pushed the arni/gas_prices/separate_new_from_validate branch from 8ed2ee0 to 0056b67 Compare November 25, 2024 11:49
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (arni/gas_prices/separate_new_from_validate@7d6ad29). Learn more about missing BASE report.

Additional details and impacted files
@@                              Coverage Diff                              @@
##             arni/gas_prices/separate_new_from_validate    #2269   +/-   ##
=============================================================================
  Coverage                                              ?   64.05%           
=============================================================================
  Files                                                 ?      143           
  Lines                                                 ?    17922           
  Branches                                              ?    17922           
=============================================================================
  Hits                                                  ?    11480           
  Misses                                                ?     5647           
  Partials                                              ?      795           

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


🚨 Try these New Features:

Copy link
Collaborator

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

Copy link
Collaborator

@alonh5 alonh5 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 @ArniStarkware and @dorimedini-starkware)


crates/blockifier/src/transaction/account_transactions_test.rs line 1054 at r1 (raw file):

        (steps_per_l1_gas
            * max_fee
                .checked_div(block_context.block_info.gas_prices.l1_gas_price(&FeeType::Eth),)

When the call is trivial, it's better to access the field directly instead of using this method.

Code quote:

gas_prices.l1_gas_price(&FeeType::Eth)

@ArniStarkware ArniStarkware force-pushed the arni/gas_prices/separate_new_from_validate branch from 0056b67 to b761166 Compare November 25, 2024 14:44
Copy link
Contributor Author

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


crates/blockifier/src/transaction/account_transactions_test.rs line 1054 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

When the call is trivial, it's better to access the field directly instead of using this method.

Done.

@ArniStarkware ArniStarkware force-pushed the arni/gas_prices/separate_new_from_validate branch from b761166 to 7d6ad29 Compare November 25, 2024 14:56
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.

3 participants