Fix types ssz macro

This commit is contained in:
Paul Hauner 2019-05-10 16:41:52 +10:00
parent 1e2bf03d5e
commit 2313de9b6e
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -11,7 +11,7 @@ macro_rules! ssz_tests {
let original = $type::random_for_test(&mut rng);
let bytes = ssz_encode(&original);
let (decoded, _): ($type, usize) = <_>::ssz_decode(&bytes, 0).unwrap();
let decoded = $type::from_ssz_bytes(&bytes).unwrap();
assert_eq!(original, decoded);
}