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 1d1bbd7 commit 97daa2dCopy full SHA for 97daa2d
crates/evm/src/trace/identifier/local.rs
@@ -31,8 +31,13 @@ impl TraceIdentifier for LocalTraceIdentifier<'_> {
31
let (_, (id, abi)) = self
32
.known_contracts
33
.iter()
34
- .map(|(id, (abi, known_code))| {
35
- (OrderedFloat(diff_score(known_code, code)), (id, abi))
+ .filter_map(|(id, (abi, known_code))| {
+ let score = diff_score(known_code, code);
36
+ if score < 0.1 {
37
+ Some((OrderedFloat(score), (id, abi)))
38
+ } else {
39
+ None
40
+ }
41
})
42
.min_by_key(|(score, _)| *score)?;
43
0 commit comments