Browse Source

added mutation safe tag

ignazio-bovo 3 years ago
parent
commit
f8cbc883e4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      runtime-modules/content/src/lib.rs

+ 5 - 1
runtime-modules/content/src/lib.rs

@@ -744,6 +744,10 @@ decl_module! {
                 dyn_bag
             )?;
 
+            //
+            // == MUTATION SAFE ==
+            //
+
             // remove channel from on chain state
             ChannelById::<T>::remove(channel_id);
 
@@ -953,7 +957,7 @@ decl_module! {
                 &channel.owner,
             )?;
 
-        // remove specified assets from channel bag in storage
+            // remove specified assets from channel bag in storage
             Self::remove_assets_from_storage(&assets, &channel_id, &channel.deletion_prize_source_account_id)?;
 
             // atomically upload to storage and return the # of uploaded assets