Fix deserialization of Bytes (#3866)

* Update impl-serde to patch RPC.

* Add test.

* Fix long line.
This commit is contained in:
Tomasz Drwięga
2019-10-22 03:09:39 +02:00
committed by Bastian Köcher
parent b888f7db71
commit 1111d79ac1
2 changed files with 14 additions and 6 deletions
+8
View File
@@ -313,3 +313,11 @@ fn should_notify_on_runtime_version_initially() {
// no more notifications on this channel
assert_eq!(core.block_on(next.into_future()).unwrap().0, None);
}
#[test]
fn should_deserialize_storage_key() {
let k = "\"0x7f864e18e3dd8b58386310d2fe0919eef27c6e558564b7f67f22d99d20f587b\"";
let k: StorageKey = serde_json::from_str(k).unwrap();
assert_eq!(k.0.len(), 32);
}