mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 10:41:09 +00:00
Update parity-wasm to 0.40 (#3631)
* updated direct dependencies to parity-wasm * fixed tests and incremented impl_version of the runtime * update wasmi to 0.5.1 in sr-sandbox, bringing all parity-wasm deps up to 0.40
This commit is contained in:
@@ -15,7 +15,7 @@ runtime_version = { package = "sr-version", path = "../sr-version" }
|
||||
panic-handler = { package = "substrate-panic-handler", path = "../panic-handler" }
|
||||
wasm-interface = { package = "substrate-wasm-interface", path = "../wasm-interface" }
|
||||
wasmi = "0.5.0"
|
||||
parity-wasm = "0.31"
|
||||
parity-wasm = "0.40.1"
|
||||
lazy_static = "1.3"
|
||||
parking_lot = "0.9.0"
|
||||
log = "0.4"
|
||||
|
||||
@@ -99,7 +99,12 @@ impl StateSnapshot {
|
||||
// anyway.
|
||||
let contents = mem::replace(segment.value_mut(), vec![]);
|
||||
|
||||
let init_expr = segment.offset().code();
|
||||
let init_expr = match segment.offset() {
|
||||
Some(offset) => offset.code(),
|
||||
// Return if the segment is passive
|
||||
None => return None
|
||||
};
|
||||
|
||||
// [op, End]
|
||||
if init_expr.len() != 2 {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user