Fix contract child usage (#2299)

* Fix contract child usage

* bump implementation version
This commit is contained in:
thiolliere
2019-04-16 18:09:34 +02:00
committed by Sergei Pepyakin
parent 6b3cb78a48
commit 450c03d03e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ impl<T: Trait> AccountDb<T> for DirectAccountDb {
let mut new_storage_size = info.storage_size;
for (k, v) in changed.storage.into_iter() {
if let Some(value) = child::get::<Vec<u8>>(&info.trie_id[..], &k) {
if let Some(value) = child::get_raw(&info.trie_id[..], &k) {
new_storage_size -= value.len() as u64;
}
if let Some(value) = v {