|
@@ -32,36 +32,7 @@ impl<T: Trait> Module<T> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- // Reset working group mint capacity
|
|
|
- if let Err(err) = content_working_group::Module::<T>::set_mint_capacity(
|
|
|
- system::RawOrigin::Root.into(),
|
|
|
- minting::BalanceOf::<T>::zero(),
|
|
|
- ) {
|
|
|
- debug::warn!(
|
|
|
- "Failed to reset mint for working group during migration: {:?}",
|
|
|
- err
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- // Set Storage Role reward to zero
|
|
|
- if let Some(parameters) =
|
|
|
- roles::actors::Parameters::<T>::get(roles::actors::Role::StorageProvider)
|
|
|
- {
|
|
|
- if let Err(err) = roles::actors::Module::<T>::set_role_parameters(
|
|
|
- system::RawOrigin::Root.into(),
|
|
|
- roles::actors::Role::StorageProvider,
|
|
|
- roles::actors::RoleParameters {
|
|
|
- reward: BalanceOf::<T>::zero(),
|
|
|
- ..parameters
|
|
|
- },
|
|
|
- ) {
|
|
|
- debug::warn!(
|
|
|
- "Failed to set zero reward for storage role during migration: {:?}",
|
|
|
- err
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ // Initialise the proposal system various periods
|
|
|
proposals_codex::Module::<T>::set_default_config_values();
|
|
|
|
|
|
Self::deposit_event(RawEvent::Migrated(
|