Skip to content

Commit

Permalink
Fixup the broken instances for PraosNonce
Browse files Browse the repository at this point in the history
Using the wrong ones.

TODO: rebase to squash this into the original patch.
  • Loading branch information
dcoutts committed Jun 8, 2021
1 parent 7eb78ae commit bf43ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardano-api/src/Cardano/Api/ProtocolParameters.hs
Expand Up @@ -642,9 +642,9 @@ instance FromCBOR ProtocolParametersUpdate where

newtype PraosNonce = PraosNonce (Ledger.Hash StandardCrypto ByteString)
deriving stock (Eq, Ord, Generic)
deriving (Show, IsString) via UsingRawBytesHex (Hash PaymentKey)
deriving (ToJSON, FromJSON) via UsingRawBytesHex (Hash PaymentKey)
deriving (ToCBOR, FromCBOR) via UsingRawBytes (Hash PaymentKey)
deriving (Show, IsString) via UsingRawBytesHex PraosNonce
deriving (ToJSON, FromJSON) via UsingRawBytesHex PraosNonce
deriving (ToCBOR, FromCBOR) via UsingRawBytes PraosNonce

instance HasTypeProxy PraosNonce where
data AsType PraosNonce = AsPraosNonce
Expand Down

0 comments on commit bf43ee5

Please sign in to comment.