mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
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:
committed by
GitHub
parent
ee557b769c
commit
39704979fe
@@ -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();
|
||||
|
||||
@@ -2249,7 +2249,7 @@ fn upload_code_works() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Reserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
@@ -2328,7 +2328,7 @@ fn remove_code_works() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Reserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
@@ -2341,7 +2341,7 @@ fn remove_code_works() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Unreserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
@@ -2383,7 +2383,7 @@ fn remove_code_wrong_origin() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Reserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
@@ -2514,7 +2514,7 @@ fn instantiate_with_zero_balance_works() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Reserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
@@ -2614,7 +2614,7 @@ fn instantiate_with_below_existential_deposit_works() {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Balances(pallet_balances::Event::Reserved {
|
||||
who: ALICE,
|
||||
amount: 180,
|
||||
amount: 240,
|
||||
}),
|
||||
topics: vec![],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user