Skip to content

Commit

Permalink
cardano-ledger-spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Sep 14, 2020
1 parent 7ead71e commit f8de335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cardano-api/src/Cardano/Api/Typed.hs
Expand Up @@ -443,11 +443,11 @@ import qualified Shelley.Spec.Ledger.OCert as Shelley
import qualified Shelley.Spec.Ledger.PParams as Shelley
import qualified Shelley.Spec.Ledger.Scripts as Shelley
import qualified Shelley.Spec.Ledger.Tx as Shelley
import qualified Shelley.Spec.Ledger.TxData as Shelley
import qualified Shelley.Spec.Ledger.TxBody as Shelley
import qualified Shelley.Spec.Ledger.UTxO as Shelley

-- Types we will re-export as-is
import Shelley.Spec.Ledger.TxData (MIRPot (..))
import Shelley.Spec.Ledger.TxBody (MIRPot (..))

-- TODO: replace the above with
--import qualified Cardano.Api.Byron as Byron
Expand Down Expand Up @@ -1810,7 +1810,7 @@ makeMIRCertificate mirpot amounts =
. Shelley.DCertMir
$ Shelley.MIRCert
mirpot
(Map.fromListWith (+)
(Map.fromListWith (<>)
[ (toShelleyStakeCredential sc, toShelleyLovelace v)
| (sc, v) <- amounts ])

Expand Down
2 changes: 1 addition & 1 deletion cardano-node/src/Cardano/Tracing/ConvertTxId.hs
Expand Up @@ -21,7 +21,7 @@ import Ouroboros.Consensus.Ledger.SupportsMempool (GenTx)
import Ouroboros.Consensus.Shelley.Ledger.Block (ShelleyBlock)
import Ouroboros.Consensus.Shelley.Ledger.Mempool (TxId (..))
import Ouroboros.Consensus.TypeFamilyWrappers
import qualified Shelley.Spec.Ledger.TxData as Shelley
import qualified Shelley.Spec.Ledger.TxBody as Shelley

-- | Convert a transaction ID to raw bytes.
class ConvertTxId blk where
Expand Down
3 changes: 2 additions & 1 deletion cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs
Expand Up @@ -78,7 +78,8 @@ import Shelley.Spec.Ledger.STS.Tick
import Shelley.Spec.Ledger.STS.Tickn
import Shelley.Spec.Ledger.STS.Updn
import Shelley.Spec.Ledger.STS.Utxo
import Shelley.Spec.Ledger.TxData (MIRPot (..), TxId (..), TxIn (..), TxOut (..))
import Shelley.Spec.Ledger.STS.Utxow
import Shelley.Spec.Ledger.TxBody (MIRPot (..), TxId (..), TxIn (..), TxOut (..))

{- HLINT ignore "Use :" -}

Expand Down

0 comments on commit f8de335

Please sign in to comment.