Skip to content

Commit

Permalink
test: extend test with rlp (alloy-rs#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and lwedge99 committed Jan 3, 2025
1 parent 1f5e32a commit 27d1354
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/consensus/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,5 +981,9 @@ mod tests {
let header = serde_json::from_str::<Header>(raw).unwrap();
let hash = header.hash_slow();
assert_eq!(hash, b256!("661da523f3e44725f3a1cee38183d35424155a05674609a9f6ed81243adf9e26"));
let mut v = Vec::new();
header.encode(&mut v);
let decoded = Header::decode(&mut v.as_slice()).unwrap();
assert_eq!(decoded, header);
}
}

0 comments on commit 27d1354

Please sign in to comment.