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:
Ashley
2019-09-18 22:27:59 +12:00
committed by Sergei Pepyakin
parent a07e567fe1
commit e9c756dced
7 changed files with 35 additions and 38 deletions
@@ -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;