diff --git a/crates/starknet_mempool/src/communication.rs b/crates/starknet_mempool/src/communication.rs index 7e1451794b..c4d43b9847 100644 --- a/crates/starknet_mempool/src/communication.rs +++ b/crates/starknet_mempool/src/communication.rs @@ -100,7 +100,7 @@ impl MempoolCommunicationWrapper { self.mempool.get_txs(n_txs) } - pub(crate) fn deploy_account_exists( + pub(crate) fn has_tx_from_address( &self, _account_address: ContractAddress, ) -> MempoolResult { @@ -122,7 +122,7 @@ impl ComponentRequestHandler for MempoolCommuni MempoolResponse::GetTransactions(self.get_txs(n_txs)) } MempoolRequest::DeployAccountExists(account_address) => { - MempoolResponse::DeployAccountExists(self.deploy_account_exists(account_address)) + MempoolResponse::DeployAccountExists(self.has_tx_from_address(account_address)) } } } diff --git a/crates/starknet_mempool_types/src/communication.rs b/crates/starknet_mempool_types/src/communication.rs index 82d3379c7b..689bf0dea9 100644 --- a/crates/starknet_mempool_types/src/communication.rs +++ b/crates/starknet_mempool_types/src/communication.rs @@ -46,9 +46,9 @@ pub trait MempoolClient: Send + Sync { async fn add_tx(&self, args: AddTransactionArgsWrapper) -> MempoolClientResult<()>; async fn commit_block(&self, args: CommitBlockArgs) -> MempoolClientResult<()>; async fn get_txs(&self, n_txs: usize) -> MempoolClientResult>; - async fn deploy_account_exists( + async fn has_tx_from_address( &self, - account_address: ContractAddress, + contract_address: ContractAddress, ) -> MempoolClientResult; } @@ -104,11 +104,11 @@ where ) } - async fn deploy_account_exists( + async fn has_tx_from_address( &self, - account_address: ContractAddress, + contract_address: ContractAddress, ) -> MempoolClientResult { - let request = MempoolRequest::DeployAccountExists(account_address); + let request = MempoolRequest::DeployAccountExists(contract_address); let response = self.send(request).await; handle_response_variants!( MempoolResponse,