I seem to have an issue with this expression, please can anyone assist me with it what's the right way to do this?
#[extra]
#[pallet::benchmark]
fn transfer_increasing_users () {
// 1_000 is not very much, but this upper bound can be controlled by the CLI.
let u in 0 .. 1_000; <- Syntax Error: expected SEMICOLON
let existential_deposit = T::ExistentialDeposit::get();
let caller = whitelisted_caller();
}
If you want to assign a Range to u, then you should write let u = 0..1_000;
If you want to iterate a thousand times and call that function, then you'd do:
fn transfer_increasing_users () {
// 1_000 is not very much, but this upper bound can be controlled by the CLI.
for _u in 0 .. 1_000 {
let existential_deposit = T::ExistentialDeposit::get();
let caller = whitelisted_caller();
}
}