We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d28a9f commit 5531021Copy full SHA for 5531021
crates/anvil/src/eth/backend/mem/mod.rs
@@ -2904,11 +2904,7 @@ impl Backend {
2904
hash: B256,
2905
opts: GethDebugTracingOptions,
2906
) -> Option<Result<GethTrace, BlockchainError>> {
2907
- if let Some(tx) = self.blockchain.storage.read().transactions.get(&hash) {
2908
- Some(self.geth_trace(tx, opts))
2909
- } else {
2910
- None
2911
- }
+ self.blockchain.storage.read().transactions.get(&hash).map(|tx| self.geth_trace(tx, opts))
2912
}
2913
2914
/// Returns the traces for the given block
0 commit comments