Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
v9n committed Jul 4, 2023
1 parent 1deb99b commit 6b0e2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/automation-time/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ benchmarks! {
let weight_left = Weight::from_ref_time(500_000_000_000);
let mut task_ids = vec![];
let caller: T::AccountId = account("caller", 0, SEED);
let time1 = 10800;
let execution_time = 10800;

for i in 0..v {
let provided_id: Vec<u8> = vec![i.saturated_into::<u8>()];
let task = TaskOf::<T>::create_event_task::<T>(caller.clone(), provided_id.clone(), vec![time1], vec![65, 65.saturating_add(i as u8)]).unwrap();
let task = TaskOf::<T>::create_event_task::<T>(caller.clone(), provided_id.clone(), vec![execution_time], vec![65, 65.saturating_add(i as u8)]).unwrap();
let task_id = AutomationTime::<T>::schedule_task(&task, provided_id).unwrap();
<AccountTasks<T>>::insert(caller.clone(), task_id, task);
task_ids.push((caller.clone(), task_id))
Expand Down

0 comments on commit 6b0e2bf

Please sign in to comment.