return old trie values on insert and remove (#4053)

* return old trie values on insert and remove

* fix json tests
This commit is contained in:
Robert Habermeier
2017-01-05 21:15:43 +01:00
committed by Gav Wood
parent 20c1d37b59
commit b4e713efdc
5 changed files with 98 additions and 42 deletions

View File

@@ -33,7 +33,7 @@ fn test_trie(json: &[u8], trie: TrieSpec) -> Vec<String> {
let key: Vec<u8> = key.into();
let value: Vec<u8> = value.map_or_else(Vec::new, Into::into);
t.insert(&key, &value)
.expect(&format!("Trie test '{:?}' failed due to internal error", name))
.expect(&format!("Trie test '{:?}' failed due to internal error", name));
}
if *t.root() != test.root.into() {