Skip to content

Commit

Permalink
Update lib/core/src/Cardano/Wallet/Api/Types.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Knowles <github.com@jonathanknowles.net>
  • Loading branch information
hasufell and jonathanknowles committed Aug 26, 2020
1 parent b412a23 commit 6ce8e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/src/Cardano/Wallet/Api/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1099,8 +1099,8 @@ instance ToJSON ApiByronWalletBalance where

instance FromJSON (ApiT PoolId) where
parseJSON = parseJSON >=> eitherToParser
. bimap ShowFmt ApiT
. decodePoolIdBech32
. bimap ShowFmt ApiT
. decodePoolIdBech32
instance ToJSON (ApiT PoolId) where
toJSON = toJSON . encodePoolIdBech32 . getApiT

Expand Down

0 comments on commit 6ce8e9e

Please sign in to comment.