diff --git a/src/test_utils/mongo/mod.rs b/src/test_utils/mongo/mod.rs index d385b6740..531becfe8 100644 --- a/src/test_utils/mongo/mod.rs +++ b/src/test_utils/mongo/mod.rs @@ -8,8 +8,7 @@ use crate::providers::eth_provider::{ }, }; use alloy_primitives::{B256, U256}; -use alloy_rpc_types::{Transaction, TransactionReceipt}; -use alloy_serde::WithOtherFields; +use alloy_rpc_types::Transaction; use arbitrary::Arbitrary; use mongodb::{ bson::{self, doc, Document}, @@ -331,24 +330,6 @@ impl MongoFuzzer { .expect("Failed to insert documents"); } } - - pub async fn insert_transaction_receipt( - &mut self, - receipt: WithOtherFields, - ) -> Result<(), Box> { - // Convert the receipt into a StoredTransactionReceipt - let stored_receipt = StoredTransactionReceipt { receipt }; - - // Add the receipt to the receipts and logs collections - self.receipts.push(stored_receipt.clone()); - self.logs.append(&mut Vec::from(stored_receipt.clone())); - - // Update the collections in the database - self.update_collection(CollectionDB::Receipts).await; - self.update_collection(CollectionDB::Logs).await; - - Ok(()) - } } #[cfg(test)]