mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 17:41:08 +00:00
Update parity-scale-codec to 2.0 (#7994)
* update cargo.toml * use 2.0 in mmmr
This commit is contained in:
committed by
GitHub
parent
bea4a6524d
commit
f48296e9ad
@@ -19,9 +19,9 @@ sp-std = { version = "2.0.0", default-features = false, path = "../std" }
|
||||
sp-tracing = { version = "2.0.0", default-features = false, path = "../tracing" }
|
||||
sp-runtime-interface-proc-macro = { version = "2.0.0", path = "proc-macro" }
|
||||
sp-externalities = { version = "0.8.0", optional = true, path = "../externalities" }
|
||||
codec = { package = "parity-scale-codec", version = "1.3.6", default-features = false }
|
||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false }
|
||||
static_assertions = "1.0.0"
|
||||
primitive-types = { version = "0.8.0", default-features = false }
|
||||
primitive-types = { version = "0.9.0", default-features = false }
|
||||
sp-storage = { version = "2.0.0", default-features = false, path = "../storage" }
|
||||
impl-trait-for-tuples = "0.2.0"
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ impl<T: codec::Codec> PassByImpl<T> for Codec<T> {
|
||||
let (ptr, len) = unpack_ptr_and_len(arg);
|
||||
let vec = context.read_memory(Pointer::new(ptr), len)?;
|
||||
T::decode(&mut &vec[..])
|
||||
.map_err(|e| format!("Could not decode value from wasm: {}", e.what()))
|
||||
.map_err(|e| format!("Could not decode value from wasm: {}", e))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user