Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.
This repository was archived by the owner on May 21, 2024. It is now read-only.

Update pallet_uniques string limits. #297

Closed
@peterwht

Description

@peterwht

Motivation
The current pallet-uniques configuration for StringLimit is too low, at 50 bytes. Users of uniques often store the IPFS CID in the metadata. These CIDs are larger than 50 bytes.

Furthemore, the ValueLimit seems too high at 256 bytes. The value applies to attributes, which would rarely reach 256 bytes.

Suggested Solution

I recommend updating the configuration to use the same as Polkadot's asset hub.
https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/runtimes/assets/asset-hub-polkadot/src/lib.rs#L683

  • StringLimit = 128
  • KeyLimit = 32
  • ValueLimit = 64

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions