fix vesting benchmarks tests
@@ -53,7 +53,7 @@ runtime_benchmarks! {
let to: AccountId = account("to", 0, SEED);
let to_lookup = lookup_of_account(to.clone());
- }: _(RawOrigin::Signed(from), to_lookup, schedule.clone())
+ }: _(RawOrigin::Root, to_lookup, schedule.clone())
verify {
assert_eq!(
<Currencies as MultiCurrency<_>>::total_balance(NATIVE, &to),
@@ -79,7 +79,7 @@ runtime_benchmarks! {
for _ in 0..i {
schedule.start = i;
- Vesting::vested_transfer(RawOrigin::Signed(from.clone()).into(), to_lookup.clone(), schedule.clone())?;
+ Vesting::vested_transfer(RawOrigin::Root.into(), to_lookup.clone(), schedule.clone())?;
}
System::set_block_number(schedule.end().unwrap() + 1u32);
}: _(RawOrigin::Signed(to.clone()))
