Skip to content

Commit 3d26ca0

Browse files
authored
fix(anvil): handle BlockTransactions::Uncle without panic (#14135)
1 parent 96be745 commit 3d26ca0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • crates/anvil/src/eth/backend

crates/anvil/src/eth/backend/fork.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ impl<N: Network> ClientFork<N> {
383383
return self.transaction_by_hash(*tx_hash).await;
384384
}
385385
}
386-
// TODO(evalir): Is it possible to reach this case? Should we support it
387-
BlockTransactions::Uncle => panic!("Uncles not supported"),
386+
BlockTransactions::Uncle => {}
388387
}
389388
}
390389
Ok(None)
@@ -408,8 +407,7 @@ impl<N: Network> ClientFork<N> {
408407
return self.transaction_by_hash(*tx_hash).await;
409408
}
410409
}
411-
// TODO(evalir): Is it possible to reach this case? Should we support it
412-
BlockTransactions::Uncle => panic!("Uncles not supported"),
410+
BlockTransactions::Uncle => {}
413411
}
414412
}
415413
Ok(None)

0 commit comments

Comments
 (0)