Bump wasm-instrument 0.1.0 -> 0.1.1 (#10749)

* Bump wasm-instrument 0.1.0 -> 0.1.1

* Fix benchmark
This commit is contained in:
Alexander Theißen
2022-01-31 11:05:30 +01:00
committed by GitHub
parent ee557b769c
commit 39704979fe
3 changed files with 9 additions and 9 deletions
@@ -270,7 +270,7 @@ benchmarks! {
// We cannot let `c` grow to the maximum code size because the code is not allowed
// to be larger than the maximum size **after instrumentation**.
instantiate_with_code {
let c in 0 .. Perbill::from_percent(50).mul_ceil(T::Schedule::get().limits.code_len / 1024);
let c in 0 .. Perbill::from_percent(49).mul_ceil(T::Schedule::get().limits.code_len) / 1024;
let s in 0 .. code::max_pages::<T>() * 64;
let salt = vec![42u8; (s * 1024) as usize];
let value = T::Currency::minimum_balance();