From 8664023bfd120d614b86210913396fe5a9143ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Sun, 23 Jan 2022 11:07:59 +0100 Subject: [PATCH] Update Substrate for 0.9.16 (#4769) --- runtime/parachains/src/runtime_api_impl/v1.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/parachains/src/runtime_api_impl/v1.rs b/runtime/parachains/src/runtime_api_impl/v1.rs index 994a720bc590..3c3651746b57 100644 --- a/runtime/parachains/src/runtime_api_impl/v1.rs +++ b/runtime/parachains/src/runtime_api_impl/v1.rs @@ -180,9 +180,8 @@ pub fn availability_cores() -> Vec( ) -> (::BlockNumber, ::Hash) { use parity_scale_codec::Decode as _; - let state_version = >::runtime_version().state_version(); let relay_parent_number = >::block_number(); - let relay_parent_storage_root = T::Hash::decode(&mut &sp_io::storage::root(state_version)[..]) + let relay_parent_storage_root = T::Hash::decode(&mut &sp_io::storage::root()[..]) .expect("storage root must decode to the Hash type; qed"); (relay_parent_number, relay_parent_storage_root) }