|
@@ -60,21 +60,6 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<AccountId, Call, Signa
|
|
|
pub struct CustomOnRuntimeUpgrade;
|
|
|
impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
|
|
fn on_runtime_upgrade() -> Weight {
|
|
|
- let default_text_constraint = crate::working_group::default_text_constraint();
|
|
|
- let default_content_working_group_mint_capacity = 0;
|
|
|
-
|
|
|
- ContentDirectoryWorkingGroup::<Runtime>::initialize_working_group(
|
|
|
- default_text_constraint,
|
|
|
- default_text_constraint,
|
|
|
- default_text_constraint,
|
|
|
- default_content_working_group_mint_capacity,
|
|
|
- );
|
|
|
-
|
|
|
- // Next Id's are configured at genesis. Applications and tools are harcoded to expect initial
|
|
|
- // values of the ids to start at 1. With a runtime upgrade the initial values will not be
|
|
|
- // configured and get an initial default value of zero. This corrects this problem.
|
|
|
- content_directory::Module::<Runtime>::set_initial_ids_to_one();
|
|
|
-
|
|
|
10_000_000 // TODO: adjust weight
|
|
|
}
|
|
|
}
|