From 8d7ff96ce8e2ba978f51edd920d39d097be5ec99 Mon Sep 17 00:00:00 2001 From: pentreathm Date: Wed, 14 Aug 2024 14:36:43 -0300 Subject: [PATCH] feat: increase worlds size of ens names (#314) --- .env.default | 2 +- test/unit/limits-manager.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.default b/.env.default index 4bda227b..eb1d282e 100644 --- a/.env.default +++ b/.env.default @@ -49,7 +49,7 @@ COMMS_FIXED_ADAPTER=ws-room:ws-room-service.decentraland.org/rooms/test-scene DEPLOYMENT_TTL=300000 MAX_PARCELS=4 MAX_SIZE=100 -ENS_MAX_SIZE=25 +ENS_MAX_SIZE=36 ALLOW_SDK6=false WHITELIST_URL=https://config.decentraland.org/worlds-whitelist.json NAME_VALIDATOR=DCL_NAME_CHECKER diff --git a/test/unit/limits-manager.spec.ts b/test/unit/limits-manager.spec.ts index 6489652b..c64675d9 100644 --- a/test/unit/limits-manager.spec.ts +++ b/test/unit/limits-manager.spec.ts @@ -21,7 +21,7 @@ describe('limits manager', function () { config = createConfigComponent({ MAX_PARCELS: '4', MAX_SIZE: '200', - ENS_MAX_SIZE: '25', + ENS_MAX_SIZE: '36', ALLOW_SDK6: 'false', WHITELIST_URL: 'http://localhost/whitelist.json' }) @@ -69,7 +69,7 @@ describe('limits manager', function () { it('responds for ENS names', async () => { expect(await limitsManager.getAllowSdk6For('cool.eth')).toBeFalsy() - expect(await limitsManager.getMaxAllowedSizeInBytesFor('cool.eth')).toBe(25n * MB_BigInt) + expect(await limitsManager.getMaxAllowedSizeInBytesFor('cool.eth')).toBe(36n * MB_BigInt) expect(await limitsManager.getMaxAllowedParcelsFor('cool.eth')).toBe(4) })