Skip to content

Commit a71de15

Browse files
committed
Propagate createAndValidateTransactionBody to tx-generator
1 parent c86e0e3 commit a71de15

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bench/tx-generator/src/Cardano/Benchmarking/GeneratorTx/Genesis.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ mkGenesisTransaction :: forall era .
8585
-> [TxOut CtxTx era]
8686
-> Tx era
8787
mkGenesisTransaction key ttl fee txins txouts
88-
= case makeTransactionBody txBodyContent of
88+
= case createAndValidateTransactionBody txBodyContent of
8989
Right b -> signShelleyTransaction b [WitnessGenesisUTxOKey key]
9090
Left err -> error $ show err
9191
where

bench/tx-generator/src/Cardano/Benchmarking/GeneratorTx/SizedMetadata.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ metadataSize :: forall era . IsShelleyBasedEra era => AsType era -> Maybe TxMeta
101101
metadataSize p m = dummyTxSize p m - dummyTxSize p Nothing
102102

103103
dummyTxSizeInEra :: forall era . IsShelleyBasedEra era => TxMetadataInEra era -> Int
104-
dummyTxSizeInEra metadata = case makeTransactionBody dummyTx of
104+
dummyTxSizeInEra metadata = case createAndValidateTransactionBody dummyTx of
105105
Right b -> BS.length $ serialiseToCBOR b
106106
Left err -> error $ "metaDataSize " ++ show err
107107
where

bench/tx-generator/src/Cardano/TxGenerator/Tx.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ genTx :: forall era. IsShelleyBasedEra era =>
7575
-> TxMetadataInEra era
7676
-> TxGenerator era
7777
genTx protocolParameters (collateral, collFunds) fee metadata inFunds outputs
78-
= case makeTransactionBody txBodyContent of
78+
= case createAndValidateTransactionBody txBodyContent of
7979
Left err -> Left $ show err
8080
Right b -> Right ( signShelleyTransaction b $ map WitnessPaymentKey allKeys
8181
, getTxId b

0 commit comments

Comments
 (0)