difftreelog
Merge pull request #1043 from UniqueNetwork/fix/max-token-ownership
in: master
3 files changed
js-packages/tests/apiConsts.test.tsdiffbeforeafterboth30const NESTING_BUDGET = 5n;30const NESTING_BUDGET = 5n;313132const DEFAULT_COLLETCTION_LIMIT = {32const DEFAULT_COLLETCTION_LIMIT = {33 accountTokenOwnershipLimit: '1,000,000',33 accountTokenOwnershipLimit: '100,000,000',34 sponsoredDataSize: '2,048',34 sponsoredDataSize: '2,048',35 sponsoredDataRateLimit: 'SponsoringDisabled',35 sponsoredDataRateLimit: 'SponsoringDisabled',36 tokenLimit: '4,294,967,295',36 tokenLimit: '4,294,967,295',js-packages/tests/limits.test.tsdiffbeforeafterboth438 { // Check that default values defined for collection limits438 { // Check that default values defined for collection limits439 const limits = await collection.getEffectiveLimits();439 const limits = await collection.getEffectiveLimits();440440441 expect(limits.accountTokenOwnershipLimit).to.be.eq(100000);441 expect(limits.accountTokenOwnershipLimit).to.be.eq(100000000);442 expect(limits.sponsoredDataSize).to.be.eq(2048);442 expect(limits.sponsoredDataSize).to.be.eq(2048);443 expect(limits.sponsoredDataRateLimit).to.be.deep.eq({sponsoringDisabled: null});443 expect(limits.sponsoredDataRateLimit).to.be.deep.eq({sponsoringDisabled: null});444 expect(limits.tokenLimit).to.be.eq(4294967295);444 expect(limits.tokenLimit).to.be.eq(4294967295);primitives/data-structs/src/lib.rsdiffbeforeafterboth565657/// Maximum tokens for user.57/// Maximum tokens for user.58pub const MAX_TOKEN_OWNERSHIP: u32 = if cfg!(not(feature = "limit-testing")) {58pub const MAX_TOKEN_OWNERSHIP: u32 = if cfg!(not(feature = "limit-testing")) {59 100_00059 100_000_00060} else {60} else {61 1061 1062};62};838384/// Maximum tokens per account.84/// Maximum tokens per account.85pub const ACCOUNT_TOKEN_OWNERSHIP_LIMIT: u32 = if cfg!(not(feature = "limit-testing")) {85pub const ACCOUNT_TOKEN_OWNERSHIP_LIMIT: u32 = if cfg!(not(feature = "limit-testing")) {86 1_000_00086 100_000_00087} else {87} else {88 1088 1089};89};