File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
hydra-cardano-api/src/Hydra/Cardano/Api Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import Cardano.Ledger.Api (
32
32
datsTxWitsL ,
33
33
feeTxBodyL ,
34
34
hashScriptTxWitsL ,
35
+ hashTxAuxData ,
35
36
inputsTxBodyL ,
36
37
isValidTxL ,
37
38
mintTxBodyL ,
@@ -56,7 +57,7 @@ import Cardano.Ledger.Api qualified as Ledger
56
57
import Cardano.Ledger.Babbage qualified as Ledger
57
58
import Cardano.Ledger.Babbage.Tx qualified as Ledger
58
59
import Cardano.Ledger.Babbage.TxWits (upgradeTxDats )
59
- import Cardano.Ledger.BaseTypes (maybeToStrictMaybe , strictMaybeToMaybe )
60
+ import Cardano.Ledger.BaseTypes (StrictMaybe ( .. ), maybeToStrictMaybe , strictMaybeToMaybe )
60
61
import Cardano.Ledger.Coin (Coin (.. ))
61
62
import Cardano.Ledger.Conway.Scripts (PlutusScript (.. ))
62
63
import Cardano.Ledger.Conway.Scripts qualified as Conway
@@ -225,7 +226,9 @@ toLedgerTx = \case
225
226
& hashScriptTxWitsL .~ scripts
226
227
& datsTxWitsL .~ datums
227
228
& rdmrsTxWitsL .~ redeemers
228
- in mkBasicTx body
229
+ in mkBasicTx
230
+ -- TODO: Test that aux data hash is correctly updated in conversions
231
+ (body & auxDataHashTxBodyL .~ maybe SNothing (SJust . hashTxAuxData) auxData)
229
232
& isValidTxL .~ toLedgerScriptValidity validity
230
233
& auxDataTxL .~ maybeToStrictMaybe auxData
231
234
& witsTxL .~ wits
You can’t perform that action at this time.
0 commit comments