Commit 6bc93fc3 authored by Lewis Belcher's avatar Lewis Belcher

Merge branch 'check-hex-length-before-deserialise' of...

Merge branch 'check-hex-length-before-deserialise' of into check-hex-length-before-deserialise
parents 472cd9c0 116e2649
Pipeline #71154 passed with stages
in 30 minutes and 55 seconds
......@@ -145,9 +145,9 @@ mod test {
let hex = format!("0x{}", "1".repeat(65));
let result: Result<Uint, _> = serde_json::from_str(&format!(r#""{}""#, hex));
let err = result.unwrap_err();
assert_eq!(err.classify(), Category::Data);
format!("{}", err),
format!("Invalid hex value {}: value too big at line 1 column 69", hex)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment