Skip to content

Commit

Permalink
Add txInsReference support and Babbage (un)support
Browse files Browse the repository at this point in the history
  • Loading branch information
cblp authored and newhoggy committed Apr 2, 2023
1 parent 32f8c13 commit c53d61e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cardano-api/test/Test/Cardano/Api/TxBody.hs
Expand Up @@ -54,7 +54,10 @@ test_roundtrip_TxBody_make_get =
(normalizeContentOriginal $ viewBodyContent content)
(\_ -> createAndValidateTransactionBody content)
(<&> \(TxBody content') -> normalizeContentRoundtrip content')
| AnyCardanoEra era <- [minBound..]
| AnyCardanoEra era <-
[ minBound .. AnyCardanoEra AlonzoEra
-- TODO: temporary exception until Babbage consensus is implemented
]
]


Expand Down Expand Up @@ -94,7 +97,10 @@ test_roundtrip_TxBody_make_get_make =

assertEqBodies body1 body2

| AnyCardanoEra era <- [minBound..]
| AnyCardanoEra era <-
[ minBound .. AnyCardanoEra AlonzoEra
-- TODO: temporary exception until Babbage consensus is implemented
]
]


Expand Down Expand Up @@ -277,6 +283,7 @@ viewBodyContent body =
, txFee = txFee body
, txIns = map viewTxIn $ txIns body
, txInsCollateral = txInsCollateral body
, txInsReference = txInsReference body
, txMetadata = txMetadata body
, txMintValue = viewMintValue $ txMintValue body
, txOuts = txOuts body
Expand Down Expand Up @@ -339,6 +346,7 @@ buildBodyContent protocolParams body =
, txFee = txFee body
, txIns = map buildTxIn $ txIns body
, txInsCollateral = txInsCollateral body
, txInsReference = txInsReference body
, txMetadata = txMetadata body
, txMintValue = buildMintValue $ txMintValue body
, txOuts = txOuts body
Expand Down

0 comments on commit c53d61e

Please sign in to comment.