Skip to content

Commit

Permalink
Merge #3086
Browse files Browse the repository at this point in the history
3086: increase metadata ticker length r=piotr-iohk a=piotr-iohk


- [x] Iincrease metadata ticker length to 6 digits

### Comments

<!-- Additional comments, links, or screenshots to attach, if any. -->

### Issue Number

ADP-1362

input-output-hk/offchain-metadata-tools#45


Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
  • Loading branch information
3 people committed Jan 19, 2022
2 parents 23db4c3 + 2921833 commit 6b8a6f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/core/src/Cardano/Wallet/Primitive/Types/TokenPolicy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ validateMetadataName :: Text -> Either String Text
validateMetadataName = validateMinLength 1 >=> validateMaxLength 50

validateMetadataTicker :: Text -> Either String Text
validateMetadataTicker = validateMinLength 2 >=> validateMaxLength 5
validateMetadataTicker = validateMinLength 2 >=> validateMaxLength 6

validateMetadataDescription :: Text -> Either String Text
validateMetadataDescription = validateMaxLength 500
Expand Down
2 changes: 1 addition & 1 deletion lib/core/test/unit/Cardano/Wallet/TokenMetadataSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec = do
rs `shouldNotBe` []
map metadataFromProperties rs `shouldBe`
map Just
[ AssetMetadata "Token7" "description7" Nothing Nothing Nothing Nothing
[ AssetMetadata "Token7" "description7" (Just "Token7") Nothing Nothing Nothing
, AssetMetadata "Token11" "description11" Nothing Nothing Nothing Nothing
, AssetMetadata "Token12" "description12" Nothing Nothing Nothing Nothing
, AssetMetadata "Token13" "description13" Nothing Nothing Nothing Nothing
Expand Down

0 comments on commit 6b8a6f0

Please sign in to comment.