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
@@ -181,7 +181,7 @@ fn generate_native_call_generators(decl: &ItemTrait) -> Result<TokenStream> {
{
<R as #crate_::DecodeLimit>::decode_with_depth_limit(
#crate_::MAX_EXTRINSIC_DEPTH,
&#crate_::Encode::encode(input)[..],
&mut &#crate_::Encode::encode(input)[..],
).map_err(map_error)
}
));
@@ -86,7 +86,7 @@ fn generate_impl_call(
let (#( #pnames ),*) : ( #( #ptypes ),* ) =
match #c::DecodeLimit::decode_all_with_depth_limit(
#c::MAX_EXTRINSIC_DEPTH,
&#input,
&mut #input,
) {
Ok(res) => res,
Err(e) => panic!("Bad input data provided to {}: {}", #fn_name_str, e),