Upgrading parity-scale-codec to v3 (#10825)

* Upgraded dependencies

* Adapting code to scale v3

* Empty commit to trigger CI

* Triggering CI

* Fixing UI test

* Remove superfluous dev-dep added by #9228

* Cryout for CI
This commit is contained in:
wigy
2022-02-24 15:34:34 +01:00
committed by GitHub
parent eeb267e1d6
commit 535325d2e6
176 changed files with 528 additions and 450 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ impl<V: FullCodec> StorageQuery<V> {
block_index: Option<Hash>,
) -> Result<Option<V>, RpcError> {
let opt: Option<StorageData> = state_client.storage(self.key, block_index).await?;
opt.map(|encoded| V::decode_all(&encoded.0))
opt.map(|encoded| V::decode_all(&mut &encoded.0[..]))
.transpose()
.map_err(|decode_err| RpcError::Other(Box::new(decode_err)))
}