git.delta.rocks / unique-network / refs/commits / f02a706842f1

difftreelog

Merge pull request #1043 from UniqueNetwork/fix/max-token-ownership

Yaroslav Bolyukin2023-11-22parents: #16e73f0 #a5b7332.patch.diff
in: master

3 files changed

modifiedjs-packages/tests/apiConsts.test.tsdiffbeforeafterboth
--- a/js-packages/tests/apiConsts.test.ts
+++ b/js-packages/tests/apiConsts.test.ts
@@ -30,7 +30,7 @@
 const NESTING_BUDGET = 5n;
 
 const DEFAULT_COLLETCTION_LIMIT = {
-  accountTokenOwnershipLimit: '1,000,000',
+  accountTokenOwnershipLimit: '100,000,000',
   sponsoredDataSize: '2,048',
   sponsoredDataRateLimit: 'SponsoringDisabled',
   tokenLimit: '4,294,967,295',
@@ -113,4 +113,4 @@
 
 function checkConst<T>(constValue: any, expectedValue: T) {
   expect(constValue.toBigInt()).equal(expectedValue);
-}
\ No newline at end of file
+}
modifiedjs-packages/tests/limits.test.tsdiffbeforeafterboth
438 { // Check that default values defined for collection limits438 { // Check that default values defined for collection limits
439 const limits = await collection.getEffectiveLimits();439 const limits = await collection.getEffectiveLimits();
440440
441 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);
modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -56,7 +56,7 @@
 
 /// Maximum tokens for user.
 pub const MAX_TOKEN_OWNERSHIP: u32 = if cfg!(not(feature = "limit-testing")) {
-	100_000
+	100_000_000
 } else {
 	10
 };
@@ -83,7 +83,7 @@
 
 /// Maximum tokens per account.
 pub const ACCOUNT_TOKEN_OWNERSHIP_LIMIT: u32 = if cfg!(not(feature = "limit-testing")) {
-	1_000_000
+	100_000_000
 } else {
 	10
 };