mlabs-haskell / tx-village

Opinionated Rust/Haskell ecosystem of libraries and tools to work with Cardano smart contracts
https://mlabs-haskell.github.io/tx-village/
Apache License 2.0
3 stars 0 forks source link

ledger-sim: `getTxId` and then using that in the provided TxInfo fails #48

Closed bladyjoker closed 2 months ago

bladyjoker commented 2 months ago
InvalidTxInfoError'Normality (InvalidTxInfoError'InvalidId (InvalidTxIdError'UnexpectedLength 0d94e174732ef9aae73f395ab44507bfa983d65023c11a951f0c32e4 (InvalidLedgerBytesError'UnexpectedLength 32 28)))

It must be too short as

      txId <- (\(TxId bibytes) -> TxId $ bibytes <> "1234") <$> Ledger.getTxId

fixes it