Browse Source

Update comments

Shamil Gadelshin 4 years ago
parent
commit
f902bb9777

+ 3 - 3
runtime-modules/common/src/origin.rs

@@ -6,10 +6,10 @@ pub trait ActorOriginValidator<Origin, ActorId, AccountId> {
     fn ensure_actor_origin(origin: Origin, actor_id: ActorId) -> Result<AccountId, &'static str>;
 }
 
-// Multiplies the T::Origin.
-// In our current substrate version system::Origin doesn't support clone(),
-// but it will be supported in latest up-to-date substrate version.
 // TODO: delete when T::Origin will support the clone()
+/// Multiplies the T::Origin.
+/// In our current substrate version system::Origin doesn't support clone(),
+/// but it will be supported in latest up-to-date substrate version.
 pub fn double_origin<T: system::Trait>(origin: T::Origin) -> (T::Origin, T::Origin) {
     let coerced_origin = origin.into().ok().unwrap_or(RawOrigin::None);
 

+ 1 - 5
runtime-modules/proposals/codex/src/lib.rs

@@ -60,10 +60,6 @@
 // Do not delete! Cannot be uncommented by default, because of Parity decl_module! issue.
 // #![warn(missing_docs)]
 
-// TODO Working group proposals parameters & default
-// TODO Working group proposals validation limits
-// TODO module comments update.
-
 mod proposal_types;
 
 #[cfg(test)]
@@ -1152,5 +1148,5 @@ impl<T: Trait> Module<T> {
         <TerminateWorkingGroupLeaderRoleProposalGracePeriod<T>>::put(T::BlockNumber::from(
             p.terminate_working_group_leader_role_proposal_grace_period,
         ));
-    } //TODO set defaults for new proposals
+    }
 }