Update to the latest Substrate commit

Enables building with only the stable toolchain. The nightly toolchain is still
used for clippy in order to access additional checks.
This commit is contained in:
Luke Parker
2023-03-31 02:34:52 -04:00
parent 1610383649
commit 30b8636641
4 changed files with 415 additions and 291 deletions

View File

@@ -4,7 +4,7 @@ use subxt::ext::scale_value::{Composite, ValueDef, Value, scale};
pub(crate) fn scale_value<V: Encode + TypeInfo + 'static>(value: V) -> Value {
let mut registry = Registry::new();
let id = registry.register_type(&MetaType::new::<V>()).id();
let id = registry.register_type(&MetaType::new::<V>()).id;
let registry = PortableRegistry::from(registry);
scale::decode_as_type(&mut value.encode().as_ref(), id, &registry).unwrap().remove_context()
}