Skip to content

Commit

Permalink
fix(mempool_test_utils): remove unnecessary pub
Browse files Browse the repository at this point in the history
  • Loading branch information
yair-starkware committed Dec 19, 2024
1 parent a03a2ba commit 2bbd8b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/mempool_test_utils/src/starknet_api_test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ type SharedNonceManager = Rc<RefCell<NonceManager>>;
// the state diff that represents the initial state so it can be used in the test).
// 2. Execution phase - generate transactions.

// TODO: Add optional StateReader and assert that the state supports each operation (e.g. nonce).

/// Manages transaction generation for multiple pre-funded accounts, internally bumping nonces
/// as needed.
///
Expand Down Expand Up @@ -323,7 +325,7 @@ impl AccountTransactionGenerator {
}

/// Retrieves the nonce for the current account, and __increments__ it internally.
pub fn next_nonce(&mut self) -> Nonce {
fn next_nonce(&mut self) -> Nonce {
let sender_address = self.sender_address();
self.nonce_manager.borrow_mut().next(sender_address)
}
Expand Down

0 comments on commit 2bbd8b1

Please sign in to comment.