Browse Source

proposals_codex: implement working_group trait for mock runtime

iorveth 4 years ago
parent
commit
5876f37ef9
1 changed files with 12 additions and 0 deletions
  1. 12 0
      runtime-modules/proposals/codex/src/tests/mock.rs

+ 12 - 0
runtime-modules/proposals/codex/src/tests/mock.rs

@@ -154,6 +154,18 @@ impl governance::election::Trait for Test {
     type CouncilElected = ();
 }
 
+// The working group instance alias.
+pub type WorkingGroupInstance = working_group::Instance2;
+
+parameter_types! {
+    pub const MaxWorkerNumberLimit: u32 = 100;
+}
+
+impl working_group::Trait<WorkingGroupInstance> for Test {
+    type Event = ();
+    type MaxWorkerNumberLimit = MaxWorkerNumberLimit;
+}
+
 impl recurring_rewards::Trait for Test {
     type PayoutStatusHandler = ();
     type RecipientId = u64;