Skip to content

Commit

Permalink
Update instance Malformed TokenPolicyId
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Jan 22, 2021
1 parent b35f3ce commit 309d3cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/core/test/unit/Cardano/Wallet/Api/Malformed.hs
Expand Up @@ -240,10 +240,11 @@ instance Malformed (PathParam (ApiT TokenPolicyId)) where
[ ( "faff", msgWrongLength )
, ( T.replicate 57 "0", msgWrongLength )
, ( T.replicate 56 "x", msgMalformed )
, ( "f", msgMalformed )
]
where
msgWrongLength = "TokenPolicyId should be 32 bytes long"
msgMalformed = "TokenPolicyId must be hex-encoded"
msgMalformed = "Invalid tokenPolicy hash: expecting a hex-encoded value that is 28 bytes in length."
msgWrongLength = msgMalformed

instance Wellformed (PathParam (ApiT TokenName)) where
wellformed = PathParam <$>
Expand Down

0 comments on commit 309d3cd

Please sign in to comment.