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 authored and GitHub committed 2022-08-16 10:36:34 +00:00
1 parent a467983398
commit 2fd028156e
8 files changed
+65 -41

No files matched your search

+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);
}