-
Notifications
You must be signed in to change notification settings - Fork 25
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
chore(blockifier): enforce_fee() impl by api::executable_transaction::AccountTransaction #2377
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAttention: Patch coverage is
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. |
c168755
to
8fda3f9
Compare
0e846bc
to
3444829
Compare
There was a problem hiding this 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 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()
8fda3f9
to
4fd1f29
Compare
3444829
to
7516271
Compare
7516271
to
32a285b
Compare
4fd1f29
to
c34c59b
Compare
0c02023
to
3366036
Compare
…:AccountTransaction
3366036
to
0502be4
Compare
There was a problem hiding this 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
There was a problem hiding this 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: complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)
No description provided.