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
+3 -7
View File
@@ -471,7 +471,7 @@ mod tests {
to: 9,
value: 6,
data: vec![1, 2, 3, 4],
gas_left: 49970,
gas_left: 49971,
}]
);
}
@@ -533,7 +533,7 @@ mod tests {
code_hash: [0x11; 32].into(),
endowment: 3,
data: vec![1, 2, 3, 4],
gas_left: 49946,
gas_left: 49947,
}]
);
}
@@ -1359,11 +1359,7 @@ mod tests {
vec![0x00, 0x01, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe5, 0x14, 0x00])
]);
assert_eq!(gas_meter.gas_left(), 50_000
- 6 // Explicit
- 13 - 1 - 1 // Deposit event
- (13 + 33) // read memory
);
assert_eq!(gas_meter.gas_left(), 49934);
}
const CODE_DEPOSIT_EVENT_MAX_TOPICS: &str = r#"