Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SkandaBhat committed Oct 2, 2024
1 parent 0a16627 commit 146c2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rpc-types-mev/src/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl<'de> Deserialize<'de> for FunctionSelector {
return Err(serde::de::Error::custom(format!(
"Expected 4 byte function selector: {}",
hex_str
)))
)));
}

let bytes = hex::decode(s).map_err(serde::de::Error::custom)?;
Expand Down Expand Up @@ -296,4 +296,4 @@ mod tests {
let s = r#"{"hash":"0xc7dc06c994400830054ab815732d91275bc1241f9be62b62b687b7882f19b8d4","logs":null,"txs":[{"to":"0x0000c335bc9d5d1af0402cad63fa7f258363d71a","functionSelector":"0x696d2073","callData":"0x696d20736861726969696969696e67"}]}"#;
let _ev: Event = serde_json::from_str(s).unwrap();
}
}
}

0 comments on commit 146c2c1

Please sign in to comment.