diff --git a/feeder/src/prover/execution.rs b/feeder/src/prover/execution.rs index 5839b157..aab690fa 100644 --- a/feeder/src/prover/execution.rs +++ b/feeder/src/prover/execution.rs @@ -78,11 +78,10 @@ fn encode_receipt(receipt: &TransactionReceipt) -> Vec { mod tests { use cita_trie::{MemoryDB, PatriciaTrie, Trie}; use ethers::{ - types::{Block, Transaction, TransactionReceipt}, utils::rlp::encode, }; use hasher::HasherKeccak; - use std::{fs::File, sync::Arc}; + use std::{sync::Arc}; use sync_committee_rs::constants::Root; use tokio::test as tokio_test; diff --git a/feeder/src/prover/mocks/mock_execution_rpc.rs b/feeder/src/prover/mocks/mock_execution_rpc.rs index 5ac1569a..cd28e4ac 100644 --- a/feeder/src/prover/mocks/mock_execution_rpc.rs +++ b/feeder/src/prover/mocks/mock_execution_rpc.rs @@ -37,31 +37,31 @@ impl ExecutionAPI for MockExecutionRPC { Ok(res) } - async fn get_block(&self, block_number: u64) -> Result>> { + async fn get_block(&self, _block_number: u64) -> Result>> { unimplemented!(); } - async fn get_transaction_receipt(&self, tx_hash: &H256) -> Result> { + async fn get_transaction_receipt(&self, _tx_hash: &H256) -> Result> { unimplemented!(); } - async fn get_blocks(&self, block_numbers: &[u64]) -> Result>>> { + async fn get_blocks(&self, _block_numbers: &[u64]) -> Result>>> { unimplemented!(); } async fn get_latest_block_number(&self) -> Result { unimplemented!(); } - async fn get_transaction(&self, tx_hash: &H256) -> Result> { + async fn get_transaction(&self, _tx_hash: &H256) -> Result> { unimplemented!(); } - async fn get_logs(&self, filter: &Filter) -> Result> { + async fn get_logs(&self, _filter: &Filter) -> Result> { unimplemented!(); } - async fn get_filter_changes(&self, filter_id: &U256) -> Result> { + async fn get_filter_changes(&self, _filter_id: &U256) -> Result> { unimplemented!(); } - async fn uninstall_filter(&self, filter_id: &U256) -> Result { + async fn uninstall_filter(&self, _filter_id: &U256) -> Result { unimplemented!(); } - async fn get_new_filter(&self, filter: &Filter) -> Result { + async fn get_new_filter(&self, _filter: &Filter) -> Result { unimplemented!(); } async fn chain_id(&self) -> Result {