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): enforce_fee() impl by api::executable_transaction::AccountTransaction #2377

Merged

Conversation

avivg-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Project coverage is 71.42%. Comparing base (e3165c4) to head (0502be4).
Report is 678 commits behind head on main.

Files with missing lines Patch % Lines
crates/blockifier/src/transaction/transactions.rs 60.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2377       +/-   ##
===========================================
+ Coverage   40.10%   71.42%   +31.32%     
===========================================
  Files          26      102       +76     
  Lines        1895    13625    +11730     
  Branches     1895    13625    +11730     
===========================================
+ Hits          760     9732     +8972     
- Misses       1100     3479     +2379     
- Partials       35      414      +379     

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

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


crates/blockifier/src/transaction/transactions.rs line 409 at r1 (raw file):

/// Determines whether the fee should be enforced for the given transaction.
pub fn enforce_fee(tx: &AccountTransaction, only_query: bool) -> bool {
    tx.create_tx_info(only_query).enforce_fee()

Add a TODO to consider doing it without create_tx_info

Code quote:

pub fn enforce_fee(tx: &AccountTransaction, only_query: bool) -> bool {
    tx.create_tx_info(only_query).enforce_fee()

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/explicit_creation_of_account_transaction branch from 8fda3f9 to 4fd1f29 Compare December 3, 2024 11:29
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/impl_enforce_fee_by_api_executable branch from 3444829 to 7516271 Compare December 3, 2024 11:31
@avivg-starkware avivg-starkware changed the base branch from avivg/blockifier/explicit_creation_of_account_transaction to graphite-base/2377 December 3, 2024 12:15
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/impl_enforce_fee_by_api_executable branch from 7516271 to 32a285b Compare December 3, 2024 12:15
@avivg-starkware avivg-starkware changed the base branch from graphite-base/2377 to main December 3, 2024 12:15
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/impl_enforce_fee_by_api_executable branch 2 times, most recently from 0c02023 to 3366036 Compare December 3, 2024 12:16
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/impl_enforce_fee_by_api_executable branch from 3366036 to 0502be4 Compare December 3, 2024 12:18
Copy link
Contributor Author

@avivg-starkware avivg-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: 1 of 2 files reviewed, all discussions resolved (waiting on @Yoni-Starkware)


crates/blockifier/src/transaction/transactions.rs line 409 at r1 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

Add a TODO to consider doing it without create_tx_info

Done

Copy link
Contributor Author

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

@avivg-starkware avivg-starkware merged commit 8d81548 into main Dec 3, 2024
13 checks passed
@avivg-starkware avivg-starkware deleted the avivg/blockifier/impl_enforce_fee_by_api_executable branch December 3, 2024 13:12
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 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.

3 participants