Skip to content

Commit

Permalink
JSONKey instances for Address
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Jun 13, 2019
1 parent 183d156 commit 826a4da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plutus-wallet-api/ledger/Ledger/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ import qualified Codec.CBOR.Write as Write
import Codec.Serialise.Class (Serialise, encode)
import Control.Lens hiding (lifted)
import Crypto.Hash (Digest, SHA256, hash)
import Data.Aeson (FromJSON, ToJSON)
import Data.Aeson (FromJSON, FromJSONKey (..), ToJSON, ToJSONKey (..))
import qualified Data.ByteArray as BA
import qualified Data.ByteString.Char8 as BS8
import qualified Data.ByteString.Lazy as BSL
Expand Down Expand Up @@ -118,6 +118,8 @@ instance Hashable Address where
deriving newtype instance Serialise Address
deriving anyclass instance ToJSON Address
deriving anyclass instance FromJSON Address
deriving anyclass instance ToJSONKey Address
deriving anyclass instance FromJSONKey Address

-- | A transaction, including witnesses for its inputs.
data Tx = Tx {
Expand Down

0 comments on commit 826a4da

Please sign in to comment.