Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions src/evm/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::{
collections::{hash_map::Entry, HashMap, HashSet},
future::Future,
pin::Pin,
str::FromStr,
sync::Arc,
};

Expand Down Expand Up @@ -235,19 +234,7 @@ where
let removed_components: Vec<(String, ProtocolComponent)> = protocol_msg
.removed_components
.iter()
.flat_map(|(id, comp)| match Bytes::from_str(id) {
Ok(addr) => Some(Ok((id, addr, comp))),
Err(e) => {
if self.skip_state_decode_failures {
None
} else {
Some(Err(StreamDecodeError::Fatal(e.to_string())))
}
}
})
.collect::<Result<Vec<_>, StreamDecodeError>>()?
.into_iter()
.flat_map(|(id, _, comp)| {
.flat_map(|(id, comp)| {
let tokens = comp
.tokens
.iter()
Expand Down Expand Up @@ -728,6 +715,7 @@ where
// Remove components from persistent state
for (id, _) in removed_pairs.iter() {
state_guard.components.remove(id);
state_guard.states.remove(id);
}

for (key, values) in contracts_map {
Expand Down
Loading