mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: refactor MockTransaction (#12627)
This commit is contained in:
@ -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>>();
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user