From bef6d5f2a1f3c267ffc5f25f4f3d28f117ca9d49 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 19 Feb 2016 10:51:17 +0100 Subject: [PATCH] fixed insecure rlp uint conversion, and failing json tests --- util/src/rlp/bytes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/src/rlp/bytes.rs b/util/src/rlp/bytes.rs index 305ec9088..2ff6281cc 100644 --- a/util/src/rlp/bytes.rs +++ b/util/src/rlp/bytes.rs @@ -247,8 +247,8 @@ macro_rules! impl_uint_from_bytes { } } -impl_uint_from_bytes!(U256, 256); -impl_uint_from_bytes!(U128, 128); +impl_uint_from_bytes!(U256, 32); +impl_uint_from_bytes!(U128, 16); impl FromBytes for T where T: FixedHash { fn from_bytes(bytes: &[u8]) -> FromBytesResult {