diff --git a/eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs b/eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs index 980b758f467..10a2acefda0 100644 --- a/eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs +++ b/eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs @@ -322,12 +322,34 @@ instance ( sequence . maybeToStrictMaybe <$> decodeNullMaybe decCBOR ) +instance + ( Era era + , DecCBOR (TxBody era) + , DecCBOR (TxWits era) + , DecCBOR (TxAuxData era) + ) => + DecCBOR (ShelleyTxRaw era) + where + decCBOR = + decode $ + RecD ShelleyTxRaw + decodeNullMaybe decCBOR) deriving via Mem (ShelleyTxRaw era) instance EraTx era => DecCBOR (Annotator (ShelleyTx era)) +deriving newtype instance + ( Era era + , DecCBOR (TxBody era) + , DecCBOR (TxWits era) + , DecCBOR (TxAuxData era) + ) => + DecCBOR (ShelleyTx era) + -- | Construct a Tx containing the explicit serialised bytes. -- -- This function is marked as unsafe since it makes no guarantee that the