@@ -203,6 +203,8 @@ import qualified Cardano.Crypto.Hashing as Byron
203
203
204
204
import qualified Cardano.Ledger.Address as Shelley
205
205
import qualified Cardano.Ledger.AuxiliaryData as Ledger
206
+ import Cardano.Ledger.Babbage.TxBody (BabbageEraTxBody (.. ),
207
+ BabbageTxBody (BabbageTxBody ), BabbageTxOut (BabbageTxOut ))
206
208
import Cardano.Ledger.BaseTypes (StrictMaybe (.. ), maybeToStrictMaybe )
207
209
import qualified Cardano.Ledger.Block as Ledger
208
210
import qualified Cardano.Ledger.Coin as Ledger
@@ -214,8 +216,6 @@ import Cardano.Ledger.Crypto (StandardCrypto)
214
216
import qualified Cardano.Ledger.Era as CC
215
217
import qualified Cardano.Ledger.Keys as Shelley
216
218
import qualified Cardano.Ledger.SafeHash as SafeHash
217
- import Cardano.Ledger.Babbage.TxBody (BabbageEraTxBody (.. ),
218
- BabbageTxBody (BabbageTxBody ), BabbageTxOut (BabbageTxOut ))
219
219
import qualified Cardano.Ledger.TxIn as Ledger
220
220
import Cardano.Ledger.Val (isZero )
221
221
@@ -226,23 +226,23 @@ import qualified Cardano.Ledger.Shelley.Metadata as Shelley
226
226
import qualified Cardano.Ledger.Shelley.Tx as Shelley
227
227
import qualified Cardano.Ledger.Shelley.TxBody as Shelley
228
228
229
- import qualified Cardano.Ledger.ShelleyMA.AuxiliaryData as Allegra
229
+ import Cardano.Ledger.Mary.Value ( MaryValue )
230
230
import Cardano.Ledger.ShelleyMA.AuxiliaryData (MAAuxiliaryData (.. ))
231
+ import qualified Cardano.Ledger.ShelleyMA.AuxiliaryData as Allegra
232
+ import Cardano.Ledger.ShelleyMA.TxBody (MATxBody (.. ))
231
233
import qualified Cardano.Ledger.ShelleyMA.TxBody as Allegra
232
234
import qualified Cardano.Ledger.ShelleyMA.TxBody as Mary
233
- import Cardano.Ledger.ShelleyMA.TxBody (MATxBody (.. ))
234
- import Cardano.Ledger.Mary.Value (MaryValue )
235
235
236
+ import Cardano.Ledger.Alonzo.Data (AlonzoAuxiliaryData (AlonzoAuxiliaryData ))
237
+ import qualified Cardano.Ledger.Alonzo.Data as Alonzo
236
238
import qualified Cardano.Ledger.Alonzo.Language as Alonzo
237
239
import qualified Cardano.Ledger.Alonzo.PParams as Alonzo
238
240
import qualified Cardano.Ledger.Alonzo.Scripts as Alonzo
239
241
import qualified Cardano.Ledger.Alonzo.Tx as Alonzo
240
- import qualified Cardano.Ledger.Alonzo.TxBody as Alonzo
241
- import qualified Cardano.Ledger.Alonzo.TxWitness as Alonzo
242
- import Cardano.Ledger.Alonzo.Data (AlonzoAuxiliaryData (AlonzoAuxiliaryData ))
243
- import qualified Cardano.Ledger.Alonzo.Data as Alonzo
244
242
import Cardano.Ledger.Alonzo.TxBody (AlonzoTxBody (AlonzoTxBody ),
245
243
AlonzoTxOut (AlonzoTxOut ))
244
+ import qualified Cardano.Ledger.Alonzo.TxBody as Alonzo
245
+ import qualified Cardano.Ledger.Alonzo.TxWitness as Alonzo
246
246
247
247
import qualified Cardano.Ledger.Babbage.PParams as Babbage
248
248
import qualified Cardano.Ledger.Babbage.TxBody as Babbage
@@ -1909,9 +1909,11 @@ deserialiseShelleyBasedTxBody era bs =
1909
1909
4 -> do
1910
1910
sValiditySupported <-
1911
1911
case txScriptValiditySupportedInShelleyBasedEra era of
1912
- Nothing -> fail $ " deserialiseShelleyBasedTxBody: Expected an era that supports the \
1913
- \script validity flag but got: "
1914
- <> show era
1912
+ Nothing -> fail $ mconcat
1913
+ [ " deserialiseShelleyBasedTxBody: Expected an era that supports the "
1914
+ , " script validity flag but got: "
1915
+ , show era
1916
+ ]
1915
1917
Just supported -> return supported
1916
1918
1917
1919
txbody <- fromCBOR
@@ -1928,16 +1930,20 @@ deserialiseShelleyBasedTxBody era bs =
1928
1930
6 -> do
1929
1931
sDataSupported <-
1930
1932
case scriptDataSupportedInEra (shelleyBasedToCardanoEra era) of
1931
- Nothing -> fail $ " deserialiseShelleyBasedTxBody: Expected an era that supports script\
1932
- \ data but got: "
1933
- <> show era
1933
+ Nothing -> fail $ mconcat
1934
+ [ " deserialiseShelleyBasedTxBody: Expected an era that supports script"
1935
+ , " data but got: "
1936
+ , show era
1937
+ ]
1934
1938
Just supported -> return supported
1935
1939
1936
1940
sValiditySupported <-
1937
1941
case txScriptValiditySupportedInShelleyBasedEra era of
1938
- Nothing -> fail $ " deserialiseShelleyBasedTxBody: Expected an era that supports the \
1939
- \script validity flag but got: "
1940
- <> show era
1942
+ Nothing -> fail $ mconcat
1943
+ [ " deserialiseShelleyBasedTxBody: Expected an era that supports the "
1944
+ , " script validity flag but got: "
1945
+ , show era
1946
+ ]
1941
1947
Just supported -> return supported
1942
1948
1943
1949
txbody <- fromCBOR
0 commit comments