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

fix: starknet_api_test_utils doc test #438

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions crates/mempool_test_utils/src/starknet_api_test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,12 @@ type AccountId = u16;
/// # Example
///
/// ```ignore
/// use starknet_gateway::invoke_tx_args;
/// use starknet_gateway::starknet_api_test_utils::MultiAccountTransactionGenerator;
/// use mempool_test_utils::starknet_api_test_utils::MultiAccountTransactionGenerator;
///
/// let mut tx_generator = MultiAccountTransactionGenerator::new(2); // Initialize with 2 accounts.
/// let account_0_tx_with_nonce_0 = tx_generator.account(0).generate_default();
/// let account_1_tx_with_nonce_0 = tx_generator.account(1).generate_default();
/// let account_0_tx_with_nonce_1 = tx_generator.account(0).generate_default();
/// let account_0_tx_with_nonce_0 = tx_generator.account_with_id(0).generate_default();
/// let account_1_tx_with_nonce_0 = tx_generator.account_with_id(1).generate_default();
/// let account_0_tx_with_nonce_1 = tx_generator.account_with_id(0).generate_default();
/// ```
// Note: when moving this to starknet api crate, see if blockifier's
// [blockifier::transaction::test_utils::FaultyAccountTxCreatorArgs] can be made to use this.
Expand Down
Loading