chore: regenerate umbrella crate, fix feature propagation

This commit is contained in:
2025-12-16 11:28:32 +03:00
parent dd6d48f528
commit 620b0e3aa0
1358 changed files with 9464 additions and 7656 deletions
@@ -165,7 +165,6 @@ mod execution {
use super::*;
use codec::Codec;
use hash_db::Hasher;
use smallvec::SmallVec;
use pezsp_core::{
hexdisplay::HexDisplay,
storage::{ChildInfo, ChildType, PrefixedStorageKey},
@@ -173,6 +172,7 @@ mod execution {
};
use pezsp_externalities::Extensions;
use pezsp_trie::PrefixedMemoryDB;
use smallvec::SmallVec;
use std::collections::{HashMap, HashSet};
pub(crate) type CallResult<E> = Result<Vec<u8>, E>;
@@ -143,7 +143,12 @@ where
/// Insert key/value into backend.
///
/// This only supports inserting keys in child tries.
pub fn insert_child(&mut self, c: pezsp_core::storage::ChildInfo, k: StorageKey, v: StorageValue) {
pub fn insert_child(
&mut self,
c: pezsp_core::storage::ChildInfo,
k: StorageKey,
v: StorageValue,
) {
self.backend.insert(vec![(Some(c), vec![(k, Some(v))])], self.state_version);
}
@@ -260,7 +265,8 @@ where
let mut proving_ext =
Ext::new(&mut self.overlay, &proving_backend, Some(&mut self.extensions));
let outcome = pezsp_externalities::set_and_run_with_externalities(&mut proving_ext, execute);
let outcome =
pezsp_externalities::set_and_run_with_externalities(&mut proving_ext, execute);
let proof = proving_backend.extract_proof().expect("Failed to extract storage proof");
(outcome, proof)
@@ -394,7 +400,10 @@ where
self.extension_by_type_id(TypeId::of::<T>()).and_then(<dyn Any>::downcast_mut)
}
fn register_extension<T: Extension>(&mut self, ext: T) -> Result<(), pezsp_externalities::Error> {
fn register_extension<T: Extension>(
&mut self,
ext: T,
) -> Result<(), pezsp_externalities::Error> {
self.register_extension_with_type_id(TypeId::of::<T>(), Box::new(ext))
}