Skip to content

Commit

Permalink
fix: starknet_api_test_utils doc test
Browse files Browse the repository at this point in the history
commit-id:f2dbb7a1
  • Loading branch information
Itay-Tsabary-Starkware committed Jul 11, 2024
1 parent 3a06dd9 commit 454cf83
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 454cf83

Please sign in to comment.