spec: ensure types up to date with v0.6.1

This commit is contained in:
Michael Sproul
2019-05-15 11:48:09 +10:00
parent 9f6b7eb757
commit 3a0f00215d
22 changed files with 78 additions and 64 deletions

View File

@@ -57,7 +57,7 @@ impl Decode for bool {
_ => {
return Err(DecodeError::BytesInvalid(
format!("Out-of-range for boolean: {}", bytes[0]).to_string(),
))
));
}
}
}
@@ -114,6 +114,7 @@ macro_rules! impl_decodable_for_u8_array {
}
impl_decodable_for_u8_array!(4);
impl_decodable_for_u8_array!(32);
impl<T: Decode> Decode for Vec<T> {
fn is_ssz_fixed_len() -> bool {