chore: refactor MockTransaction (#12627)

This commit is contained in:
Hai | RISE
2024-11-18 18:57:22 +07:00
committed by GitHub
parent 378e097aea
commit 626224e301
9 changed files with 39 additions and 161 deletions

View File

@ -2230,7 +2230,7 @@ mod tests {
.add_transaction(reth_transaction_pool::TransactionOrigin::External, tx.clone())
.await;
let request = GetPooledTransactions(vec![tx.get_hash()]);
let request = GetPooledTransactions(vec![*tx.get_hash()]);
let (send, receive) = oneshot::channel::<RequestResult<PooledTransactions>>();

View File

@ -35,7 +35,7 @@ async fn test_large_tx_req() {
tx
})
.collect();
let txs_hashes: Vec<B256> = txs.iter().map(|tx| tx.get_hash()).collect();
let txs_hashes: Vec<B256> = txs.iter().map(|tx| *tx.get_hash()).collect();
// setup testnet
let mut net = Testnet::create_with(2, MockEthProvider::default()).await;