Skip to content

Commit

Permalink
fix: Add tokens which are not already included in state guard
Browse files Browse the repository at this point in the history
The negation here is wrong - we were filtering out tokens which were not included, meaning new tokens would never get added.
  • Loading branch information
TAMARA LIPOWSKI committed Dec 13, 2024
1 parent 03d845a commit 86bbb3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/evm/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ impl TychoStreamDecoder {
.iter()
.filter_map(|(addr, t)| {
if t.quality < self.min_token_quality ||
!state_guard.tokens.contains_key(addr)
// Do not add the token if it's already included in the state_guard
state_guard.tokens.contains_key(addr)
{
return None;
}
Expand Down

0 comments on commit 86bbb3e

Please sign in to comment.