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 authored and Sergei Pepyakin committed 2019-09-18 12:27:59 +02:00
1 parent a07e567fe1
commit e9c756dced
7 files changed
+35 -38

No files matched your search

@@ -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;