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:
committed by
Gav Wood
parent
20c1d37b59
commit
b4e713efdc
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user