Skip to content

Commit

Permalink
fix: handle back func decodes in traces (foundry-rs#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo authored Apr 4, 2022
1 parent a279d2e commit 825e806
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions evm/src/trace/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,12 @@ impl CallTraceDecoder {
.collect()
})
} else {
func.decode_input(&bytes[4..])
.expect("bad function input decode")
.iter()
.map(|token| self.apply_label(token))
.collect()
match func.decode_input(&bytes[4..]) {
Ok(v) => {
v.iter().map(|token| self.apply_label(token)).collect()
}
Err(_) => Vec::new(),
}
}
} else {
Vec::new()
Expand Down

0 comments on commit 825e806

Please sign in to comment.