contracts: Upgrade to wasmi 0.28 (#13312)

* Upgrade to wasmi 0.28

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts

* Update stale comment

* Renamed variants of `Determinism`

* Compile fix

---------

Co-authored-by: command-bot <>
This commit is contained in:
Alexander Theißen
2023-03-21 00:09:22 +01:00
committed by GitHub
parent d5650ba07b
commit 82cb69922f
15 changed files with 1338 additions and 1393 deletions
+2 -2
View File
@@ -394,7 +394,7 @@ mod v9 {
initial: old.initial,
maximum: old.maximum,
code: old.code,
determinism: Determinism::Deterministic,
determinism: Determinism::Enforced,
})
});
}
@@ -464,7 +464,7 @@ mod post_checks {
fn v9<T: Config>() -> Result<(), &'static str> {
for value in CodeStorage::<T>::iter_values() {
ensure!(
value.determinism == Determinism::Deterministic,
value.determinism == Determinism::Enforced,
"All pre-existing codes need to be deterministic."
);
}