fixed insecure rlp uint conversion, and failing json tests

This commit is contained in:
debris 2016-02-19 10:51:17 +01:00
parent e3e84020f4
commit bef6d5f2a1

View File

@ -247,8 +247,8 @@ macro_rules! impl_uint_from_bytes {
} }
} }
impl_uint_from_bytes!(U256, 256); impl_uint_from_bytes!(U256, 32);
impl_uint_from_bytes!(U128, 128); impl_uint_from_bytes!(U128, 16);
impl <T>FromBytes for T where T: FixedHash { impl <T>FromBytes for T where T: FixedHash {
fn from_bytes(bytes: &[u8]) -> FromBytesResult<T> { fn from_bytes(bytes: &[u8]) -> FromBytesResult<T> {