Skip to content

Commit

Permalink
Merge pull request #1131 from input-output-hk/j-mueller/1130-jsonkey
Browse files Browse the repository at this point in the history
JSONKey instances for Address
  • Loading branch information
michaelpj authored Jun 13, 2019
2 parents 183d156 + 826a4da commit 2f17ea5
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 2f17ea5

Please sign in to comment.