difftreelog
fix max token ownership = 100_000_000
in: master
3 files changed
js-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
+}
js-packages/tests/limits.test.tsdiffbeforeafterboth--- a/js-packages/tests/limits.test.ts
+++ b/js-packages/tests/limits.test.ts
@@ -438,7 +438,7 @@
{ // Check that default values defined for collection limits
const limits = await collection.getEffectiveLimits();
- expect(limits.accountTokenOwnershipLimit).to.be.eq(100000);
+ expect(limits.accountTokenOwnershipLimit).to.be.eq(100000000);
expect(limits.sponsoredDataSize).to.be.eq(2048);
expect(limits.sponsoredDataRateLimit).to.be.deep.eq({sponsoringDisabled: null});
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};