Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
f0rki authored and vkgnosis committed Oct 27, 2021
1 parent f67369a commit 48d10ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethabi/src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ fn decode_param(param: &ParamType, data: &[u8], offset: usize) -> Result<DecodeR

let (tail, mut new_offset) = if is_dynamic {
let offset = as_usize(&peek_32_bytes(data, offset)?)?;
if offset > data.len() {
return Err(Error::InvalidData);
}
if offset > data.len() {
return Err(Error::InvalidData);
}
(&data[offset..], 0)
} else {
(data, offset)
Expand Down

0 comments on commit 48d10ad

Please sign in to comment.