-
Notifications
You must be signed in to change notification settings - Fork 26
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): explicit creation of AccountTransaction #2331
chore(blockifier): explicit creation of AccountTransaction #2331
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
1fabf2f
to
5066cb3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2331 +/- ##
===========================================
+ Coverage 40.10% 60.61% +20.50%
===========================================
Files 26 196 +170
Lines 1895 20870 +18975
Branches 1895 20870 +18975
===========================================
+ Hits 760 12650 +11890
- Misses 1100 7411 +6311
- Partials 35 809 +774 ☔ View full report in Codecov by Sentry. |
e420e42
to
02ea900
Compare
02ea900
to
c168755
Compare
c168755
to
8fda3f9
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 9 of 9 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)
crates/starknet_batcher/src/block_builder.rs
line 175 at r1 (raw file):
BlockifierTransaction::L1Handler(l1_handler_tx.clone()) } };
Better to have a from
for this particular case (hide the irrelevant flags). Non-blocking
Code quote:
let executable_tx = match tx {
Transaction::Account(account_tx) => {
BlockifierTransaction::Account(AccountTransaction {
// TODO(yair): Avoid this clone.
tx: account_tx.clone(),
only_query: false,
})
}
Transaction::L1Handler(l1_handler_tx) => {
// TODO(yair): Avoid this clone.
BlockifierTransaction::L1Handler(l1_handler_tx.clone())
}
};
8fda3f9
to
4fd1f29
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: 8 of 9 files reviewed, 1 unresolved discussion (waiting on @Yoni-Starkware)
crates/starknet_batcher/src/block_builder.rs
line 175 at r1 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Better to have a
from
for this particular case (hide the irrelevant flags). Non-blocking
Thanks. will do, added a TODO
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 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)
No description provided.