Skip to content

Commit

Permalink
Add missing case to FromCBOR (Annotator (Script era))
Browse files Browse the repository at this point in the history
  • Loading branch information
mrBliss committed Oct 28, 2020
1 parent cc9995f commit 396acee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shelley-ma/impl/src/Cardano/Ledger/ShelleyMA/Scripts.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import Data.Word (Word8)
import GHC.Generics (Generic)
import GHC.Records
import NoThunks.Class
import Shelley.Spec.Ledger.BaseTypes (invalidKey)
import Shelley.Spec.Ledger.Scripts (MultiSig)
import Shelley.Spec.Ledger.Tx
( ValidateScript (..),
Expand Down Expand Up @@ -61,6 +62,7 @@ instance Era era => FromCBOR (Annotator (Script era)) where
1 -> do
tl <- fromCBOR
pure (2, ScriptTimelock <$> tl)
k -> invalidKey k

type instance
Core.Script (ShelleyMAEra (ma :: MaryOrAllegra) c) =
Expand Down

0 comments on commit 396acee

Please sign in to comment.