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(tests_integration): return tx sender address #2056

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

Itay-Tsabary-Starkware
Copy link
Contributor

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware commented Nov 14, 2024

Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.61%. Comparing base (e3165c4) to head (3a2382b).
Report is 481 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2056      +/-   ##
==========================================
- Coverage   40.10%   33.61%   -6.50%     
==========================================
  Files          26      269     +243     
  Lines        1895    31203   +29308     
  Branches     1895    31203   +29308     
==========================================
+ Hits          760    10488    +9728     
- Misses       1100    19743   +18643     
- Partials       35      972     +937     

☔ 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.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware)


crates/starknet_integration_tests/src/utils.rs line 186 at r1 (raw file):

}

fn create_txs_for_tx_generator_test_scenario(

Consider passing the account ID as an arg, and then you can get the contract address outside of this function.
Also can you please rename this function? It's not clear what it does.


crates/starknet_integration_tests/src/utils.rs line 241 at r1 (raw file):

/// Creates and runs the many txs test scenario for the sequencer integration test. Returns
/// a list of transaction hashes, in the order they are expected to be in the mempool.
pub async fn run_transaction_generator_test_scenario<'a, Fut>(

Also rename to match.

Code quote:

run_transaction_generator_test_scenario

Copy link
Contributor Author

@Itay-Tsabary-Starkware Itay-Tsabary-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: all files reviewed, 2 unresolved discussions (waiting on @alonh5)


crates/starknet_integration_tests/src/utils.rs line 186 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Consider passing the account ID as an arg, and then you can get the contract address outside of this function.
Also can you please rename this function? It's not clear what it does.

Added a todo to address that, this will require a few changes elsewhere.


crates/starknet_integration_tests/src/utils.rs line 241 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Also rename to match.

The todo above includes renaming this function as well.

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware changed the base branch from spr/main/e71902fe to main November 18, 2024 09:13
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.

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


crates/starknet_integration_tests/src/utils.rs line 186 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Added a todo to address that, this will require a few changes elsewhere.

It's a small change, I opened a PR over your stack to show you what I meant.

Copy link
Contributor Author

@Itay-Tsabary-Starkware Itay-Tsabary-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 @Itay-Tsabary-Starkware)

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware merged commit 5de4d73 into main Nov 18, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 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