fixed U256 and transaction request deserialization, added tests for transaction request

This commit is contained in:
debris
2016-03-11 13:54:52 +01:00
parent d1fa292956
commit ecd33a6093
4 changed files with 55 additions and 21 deletions

View File

@@ -257,7 +257,7 @@ macro_rules! impl_hash {
return Err(serde::Error::custom("Invalid length."));
}
value[2..].from_hex().map(|ref v| $from::from_slice(v)).map_err(|_| serde::Error::custom("Invalid valid hex."))
value[2..].from_hex().map(|ref v| $from::from_slice(v)).map_err(|_| serde::Error::custom("Invalid hex value."))
}
fn visit_string<E>(&mut self, value: String) -> Result<Self::Value, E> where E: serde::Error {