mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +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:
@@ -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