mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 16:21:06 +00:00
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:
@@ -13,7 +13,7 @@ readme = "README.md"
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
|
||||
sp-api-proc-macro = { version = "4.0.0-dev", path = "proc-macro" }
|
||||
sp-core = { version = "5.0.0", default-features = false, path = "../core" }
|
||||
sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -19,7 +19,7 @@ sp-tracing = { version = "4.0.0", path = "../../tracing" }
|
||||
sp-runtime = { version = "5.0.0", path = "../../runtime" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../consensus/common" }
|
||||
sc-block-builder = { version = "0.10.0-dev", path = "../../../client/block-builder" }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0" }
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
||||
sp-state-machine = { version = "0.11.0", path = "../../state-machine" }
|
||||
trybuild = "1.0.53"
|
||||
rustversion = "1.0.6"
|
||||
|
||||
Reference in New Issue
Block a user