Skip to content

Commit

Permalink
increase forum sub categories runtime limit
Browse files Browse the repository at this point in the history
  • Loading branch information
freakstatic committed Sep 21, 2023
1 parent 5dfd153 commit 9c1016b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ impl membership::Config for Runtime {

parameter_types! {
pub const MaxCategoryDepth: u64 = 6;
pub const MaxDirectSubcategoriesInCategory: u64 = 5;
pub const MaxDirectSubcategoriesInCategory: u64 = 10;
pub const MaxTotalCategories: u64 = 40;
pub const MaxModeratorsForCategory: u64 = 10;

Expand Down
4 changes: 4 additions & 0 deletions tests/network-tests/src/misc/postRuntimeUpdateChecks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ export default async function assertValues({ api }: FlowProps): Promise<void> {
const version = await api.rpc.state.getRuntimeVersion()
assert.equal(version.specVersion.toNumber(), 2002)

debug('Check forum sub category limit')
const sub_category_limit = api.consts.forum.maxDirectSubcategoriesInCategory.toNumber()

Check failure on line 14 in tests/network-tests/src/misc/postRuntimeUpdateChecks.ts

View workflow job for this annotation

GitHub Actions / Ubuntu Checks (18.x)

Variable name `sub_category_limit` must match one of the following formats: camelCase, UPPER_CASE, PascalCase
assert.equal(sub_category_limit, 10)

debug('Done')
}

0 comments on commit 9c1016b

Please sign in to comment.