From c7b48afcfb93f64e6f7071cda41af36ba0c55162 Mon Sep 17 00:00:00 2001 From: strmfos <155266597+strmfos@users.noreply.github.com> Date: Sat, 4 Apr 2026 19:52:43 +0300 Subject: [PATCH] fix(anvil): handle BlockTransactions::Uncle without panic --- crates/anvil/src/eth/backend/fork.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/anvil/src/eth/backend/fork.rs b/crates/anvil/src/eth/backend/fork.rs index 423173471db65..09871d32c0120 100644 --- a/crates/anvil/src/eth/backend/fork.rs +++ b/crates/anvil/src/eth/backend/fork.rs @@ -383,8 +383,7 @@ impl ClientFork { return self.transaction_by_hash(*tx_hash).await; } } - // TODO(evalir): Is it possible to reach this case? Should we support it - BlockTransactions::Uncle => panic!("Uncles not supported"), + BlockTransactions::Uncle => {} } } Ok(None) @@ -408,8 +407,7 @@ impl ClientFork { return self.transaction_by_hash(*tx_hash).await; } } - // TODO(evalir): Is it possible to reach this case? Should we support it - BlockTransactions::Uncle => panic!("Uncles not supported"), + BlockTransactions::Uncle => {} } } Ok(None)