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): explicit creation of AccountTransaction #2331

Conversation

avivg-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/explicit_creation_of_account_transaction branch from 1fabf2f to 5066cb3 Compare November 28, 2024 11:58
@avivg-starkware avivg-starkware marked this pull request as ready for review November 28, 2024 11:59
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 57.69231% with 11 lines in your changes missing coverage. Please review.

Project coverage is 60.61%. Comparing base (e3165c4) to head (4fd1f29).
Report is 673 commits behind head on main.

Files with missing lines Patch % Lines
crates/native_blockifier/src/py_transaction.rs 0.00% 6 Missing ⚠️
crates/starknet_batcher/src/block_builder.rs 72.72% 3 Missing ⚠️
...lockifier/src/transaction/transaction_execution.rs 0.00% 2 Missing ⚠️
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.
📢 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 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())
                    }
                };

@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
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: 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

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.

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

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