Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Increase ticker length to 5 characters #14

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ cardano-metadata-submitter 19309eb9c066253cede617dc635223ace320ae0bbdd5bd1968439

| Field | Details | Command |
| --- | --- | --- |
| `ticker` | between 2 and 4 UTF-8 characters | `--ticker \| -t` |
| `ticker` | between 2 and 5 UTF-8 characters | `--ticker \| -t` |
| `url` | a valid https URI | `--url \| -h` |
| `unit` | a comma separated integer and a string of at most 30 UTF-8 characters | `--unit \| -u` |
| `logo` | a PNG image file | `--logo \| -l` |
Expand Down
2 changes: 1 addition & 1 deletion src/Cardano/Metadata/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ validateMetadataPolicy t = Policy t <$>

validateMetadataTicker :: MonadFail f => Text -> f Ticker
validateMetadataTicker = fmap Ticker .
(validateMinLength 2 >=> validateMaxLength 4)
(validateMinLength 2 >=> validateMaxLength 5)

validateMetadataDescription :: MonadFail f => Text -> f Description
validateMetadataDescription = fmap Description .
Expand Down