Skip to content

Commit

Permalink
feat: increase worlds size of ens names (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentreathm authored Aug 14, 2024
1 parent cf0ac9c commit 8d7ff96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/unit/limits-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})
Expand Down Expand Up @@ -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)
})

Expand Down

0 comments on commit 8d7ff96

Please sign in to comment.