Skip to content

Commit

Permalink
fixup! Fix json instance of TokenMap
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Jan 22, 2021
1 parent baa8d9e commit 07aee4b
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -452,8 +452,8 @@ testZeroValuedTokenQuantityFlat =
token = dummyTokenName "DUMMY-TOKEN"
json =
[aesonQQ|
[ { "policy": #{policy}
, "token": #{token}
[ { "policy_id": #{policy}
, "asset_name": #{token}
, "quantity": 0
}
]
Expand All @@ -475,8 +475,8 @@ testZeroValuedTokenQuantityNested =
token = dummyTokenName "DUMMY-TOKEN"
json =
[aesonQQ|
[ { "policy": #{policy}
, "tokens": [{"token": #{token}, "quantity": 0}]
[ { "policy_id": #{policy}
, "tokens": [{"asset_name": #{token}, "quantity": 0}]
}
]
|]
Expand All @@ -494,7 +494,7 @@ testEmptyTokenList =
Left message
where
policy = dummyTokenPolicyId 'A'
json = [aesonQQ|[{"policy": #{policy}, "tokens": []}]|]
json = [aesonQQ|[{"policy_id": #{policy}, "tokens": []}]|]
message = unwords
[ failurePreamble
, "Encountered empty token list for policy"
Expand Down

0 comments on commit 07aee4b

Please sign in to comment.