IntersectMBO / cardano-transactions

Library utilities for constructing and signing Cardano transactions.
Apache License 2.0
25 stars 7 forks source link

cardano-node: 1.20.0 -> 1.22.1 #24

Closed rvl closed 3 years ago

rvl commented 3 years ago

Overview

Comments

The CI says style checks failed, but that's not right - PR #25 should hopefully fix it.

Build failure that was fixed:

Building library for cardano-transactions-1.0.0..
[6 of 7] Compiling Data.UTxO.Transaction.Cardano.Shelley ( src/Data/UTxO/Transaction/Cardano/Shelley.hs, .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/build/Data/UTxO/Transaction/Cardano/Shelley.o )

/home/rodney/iohk/cardano-transactions/src/Data/UTxO/Transaction/Cardano/Shelley.hs:287:32: error:
    • Couldn't match expected type ‘Shelley.Spec.Ledger.Hashing.EraIndependentTxBody’
                  with actual type ‘Shelley.Spec.Ledger.TxBody.TxBody
                                      Cardano.StandardShelley’
    • In the pattern: Cardano.ShelleyTxBody body _
      In a pattern binding: (Cardano.ShelleyTxBody body _) = sigData
      In an equation for ‘signWith’:
          signWith
            (ByronSigningKey addrAttrs skey)
            (Right (net, inps, outs, sigData, wits))
            = Right (net, inps, outs, sigData, byronWit : wits)
            where
                byronWit
                  = Cardano.ShelleyBootstrapWitness
                      $ Ledger.makeBootstrapWitness txHash skey attrs
                (Cardano.ShelleyTxBody body _) = sigData
                txHash = hashWith serialize' body
                attrs = mkAttributes addrAttrs
    |
287 |         (Cardano.ShelleyTxBody body _) = sigData
    |                                ^^^^