mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
Fix contract child usage (#2299)
* Fix contract child usage * bump implementation version
This commit is contained in:
committed by
Sergei Pepyakin
parent
6b3cb78a48
commit
450c03d03e
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user