From 2bbd8b16b19e1d8c5ea99c7e68aca1b651a119e5 Mon Sep 17 00:00:00 2001 From: Yair Bakalchuk Date: Mon, 16 Dec 2024 16:40:18 +0200 Subject: [PATCH] fix(mempool_test_utils): remove unnecessary pub --- crates/mempool_test_utils/src/starknet_api_test_utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/mempool_test_utils/src/starknet_api_test_utils.rs b/crates/mempool_test_utils/src/starknet_api_test_utils.rs index 8517f71550..7bfbc225b2 100644 --- a/crates/mempool_test_utils/src/starknet_api_test_utils.rs +++ b/crates/mempool_test_utils/src/starknet_api_test_utils.rs @@ -146,6 +146,8 @@ type SharedNonceManager = Rc>; // 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. /// @@ -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) }