Skip to content
Snippets Groups Projects
Commit e6293136 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

add comment warning about hardcoded smith metadata

parent 14030b41
Branches
Tags 0.54.0
1 merge request!147Membership pallet benchmark
This commit is part of merge request !147. Comments created here will be created in the context of that merge request.
...@@ -44,6 +44,9 @@ benchmarks_instance_pallet! { ...@@ -44,6 +44,9 @@ benchmarks_instance_pallet! {
assert_has_event::<T, I>(Event::<T, I>::MembershipRequested(idty).into()); assert_has_event::<T, I>(Event::<T, I>::MembershipRequested(idty).into());
} }
request_membership { request_membership {
// Dave identity (4)
// for main wot, no constraints
// for smith subwot, his pubkey is hardcoded in default metadata
let idty: T::IdtyId = 4.into(); let idty: T::IdtyId = 4.into();
Membership::<T, I>::take(idty); Membership::<T, I>::take(idty);
let caller: T::AccountId = T::AccountIdOf::convert(idty.clone()).unwrap(); let caller: T::AccountId = T::AccountIdOf::convert(idty.clone()).unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment