ignazio 3 anni fa
parent
commit
4f7ad28200

+ 2 - 11
runtime-modules/content/src/lib.rs

@@ -60,7 +60,6 @@ use sp_std::vec::Vec;
 pub type Balances<T> = balances::Module<T>;
 pub type BalanceOf<T> = <Balances<T> as Currency<<T as frame_system::Trait>::AccountId>>::Balance;
 type Storage<T> = storage::Module<T>;
-type Minting<T> = minting::Module<T>;
 
 /// Type, used in diffrent numeric constraints representations
 pub type MaxNumber = u32;
@@ -1989,7 +1988,7 @@ decl_module! {
             // == MUTATION SAFE ==
             //
 
-            Self::transfer_reward(cashout as u32, &channel.reward_account.unwrap());
+            Self::transfer_reward(cashout, &channel.reward_account.unwrap());
             ChannelById::<T>::mutate(
                 &item.channel_id,
                 |channel| channel.cumulative_payout_earned =
@@ -2227,15 +2226,7 @@ impl<T: Trait> Module<T> {
         max(storage_price, cleanup_cost)
     }
 
-    fn transfer_reward(
-        reward: u32,
-        address: &<T as frame_system::Trait>::AccountId,
-    ) -> DispatchResult {
-        let mint_id = Minting::<T>::add_mint(reward.into(), None).unwrap();
-        Minting::<T>::transfer_tokens(mint_id, reward.into(), address).unwrap();
-        Minting::<T>::remove_mint(mint_id);
-        Ok(())
-    }
+    fn transfer_reward(_reward: BalanceOf<T>, _address: &<T as frame_system::Trait>::AccountId) {}
 
     // If we are trying to delete a video post we need witness verification
     fn ensure_witness_verification(

+ 0 - 1
runtime-modules/content/src/tests/mock.rs

@@ -55,7 +55,6 @@ pub const UNAUTHORIZED_MODERATOR_ID: u64 = 215;
 
 // Storage module & migration parameters
 // # objects in a channel == # objects in a video is assumed, changing this will make tests fail
-// TODO: set separate amount of objects per channel / video in Olympia release tests
 
 pub const DATA_OBJECT_DELETION_PRIZE: u64 = 5;
 pub const DEFAULT_OBJECT_SIZE: u64 = 5;