浏览代码

Add comments to the bureucracy module

Shamil Gadelshin 4 年之前
父节点
当前提交
866d4b12e0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      runtime-modules/bureaucracy/src/lib.rs

+ 3 - 0
runtime-modules/bureaucracy/src/lib.rs

@@ -874,6 +874,7 @@ decl_module! {
             // == MUTATION SAFE ==
             //
 
+            // This external module call both checks and mutates the state.
             ensure_on_wrapped_error!(
                 <stake::Module<T>>::slash_immediate(
                     &stake_profile.stake_id,
@@ -900,6 +901,7 @@ decl_module! {
             // == MUTATION SAFE ==
             //
 
+            // This external module call both checks and mutates the state.
             ensure_on_wrapped_error!(
                 <stake::Module<T>>::decrease_stake_to_account(
                     &stake_profile.stake_id,
@@ -925,6 +927,7 @@ decl_module! {
             // == MUTATION SAFE ==
             //
 
+            // This external module call both checks and mutates the state.
             ensure_on_wrapped_error!(
                 <stake::Module<T>>::increase_stake_from_account(
                     &stake_profile.stake_id,