File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/Cardano/TxGenerator/Setup Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ module Cardano.TxGenerator.Setup.NodeConfig
88 (module Cardano.TxGenerator.Setup.NodeConfig )
99 where
1010
11+ import Control.Applicative (Const (Const ), getConst )
1112import Control.Monad.Trans.Except (runExceptT )
1213import Data.Bifunctor (first )
1314import Data.Monoid
14- import Lens.Micro ((^.) )
1515
1616import qualified Ouroboros.Consensus.Cardano as Consensus
1717
1818import Cardano.Api (BlockType (.. ), ProtocolInfoArgs (.. ))
19- import qualified Cardano.Ledger.Api.Transition as Ledger
19+ import qualified Cardano.Ledger.Api.Transition as Ledger ( tcShelleyGenesisL )
2020import Cardano.Node.Configuration.POM
2121import Cardano.Node.Handlers.Shutdown (ShutdownConfig (.. ))
2222import Cardano.Node.Protocol.Cardano
@@ -32,7 +32,7 @@ import Cardano.TxGenerator.Types
3232-- as this guarantees proper error handling when trying to create a non-Cardano protocol.
3333getGenesis :: SomeConsensusProtocol -> ShelleyGenesis
3434getGenesis (SomeConsensusProtocol CardanoBlockType proto)
35- = transCfg ^. Ledger. tcShelleyGenesisL
35+ = getConst $ Ledger. tcShelleyGenesisL Const transCfg
3636 where
3737 ProtocolInfoArgsCardano Consensus. CardanoProtocolParams
3838 { Consensus. ledgerTransitionConfig = transCfg
Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ library
120120 , generic-monoid
121121 , ghc-prim
122122 , io-classes
123- , microlens
124123 , mtl
125124 , network
126125 , network-mux
You can’t perform that action at this time.
0 commit comments