Fix Origins Used in Runtime Benchmarks (#12037)

* fix identity benchmark origin

* fix benchmarking macro

* bounties

* democracy

* scheduler

* tips and treasury

* unused

* dunno, this is causing issues
This commit is contained in:
Shawn Tabrizi
2022-08-16 11:36:34 +01:00
committed by GitHub
parent a467983398
commit 2fd028156e
8 changed files with 65 additions and 41 deletions
+2 -1
View File
@@ -190,7 +190,8 @@ benchmarks_instance_pallet! {
let reason_hash = T::Hashing::hash(&reason[..]);
let hash = T::Hashing::hash_of(&(&reason_hash, &beneficiary));
ensure!(Tips::<T, I>::contains_key(hash), "tip does not exist");
}: _(RawOrigin::Root, hash)
let reject_origin = T::RejectOrigin::successful_origin();
}: _<T::Origin>(reject_origin, hash)
impl_benchmark_test_suite!(TipsMod, crate::tests::new_test_ext(), crate::tests::Test);
}