@@ -31,8 +31,6 @@ import Cardano.Ledger.Coin (Coin (..))
3131import Cardano.Ledger.Conway.Governance (GovActionId (.. ), GovActionIx (.. ))
3232import qualified Cardano.Ledger.Conway.Governance as Governance
3333import Cardano.Ledger.Core (txIdTx )
34- import Cardano.Ledger.Credential (Credential (.. ))
35- import Cardano.Ledger.Keys (KeyHash (.. ))
3634import Cardano.Ledger.SafeHash (SafeToHash (.. ))
3735import Cardano.Mock.ChainSync.Server (IOManager , ServerHandle )
3836import Cardano.Mock.Forging.Interpreter (Interpreter , getCurrentEpoch )
@@ -168,13 +166,11 @@ chainedNewCommittee =
168166
169167 let
170168 -- Propose a new committee member
171- committee1Hash = " e0a714319812c3f773ba04ec5d6b3ffcd5aad85006805b047b082541"
172- committee1Cred = KeyHashObj (KeyHash committee1Hash)
169+ committee1Cred = Prelude. head Forging. unregisteredCommitteeCreds
173170 proposal1 = Conway. mkAddCommitteeTx Nothing committee1Cred
174171
175172 -- Propose another, using proposal1 as the prev governance action
176- committee2Hash = " f15d3cfda3ac52c86d2d98925419795588e74f4e270a3c17beabeaff"
177- committee2Cred = KeyHashObj (KeyHash committee2Hash)
173+ committee2Cred = Forging. unregisteredCommitteeCreds Prelude. !! 1
178174 proposal2 = Conway. mkAddCommitteeTx (Just prevGovActionId) committee2Cred
179175 proposal2TxHash = unTxHash (txIdTx proposal2)
180176
@@ -268,8 +264,7 @@ proposeNewCommittee :: AlonzoTx Consensus.StandardConway
268264proposeNewCommittee =
269265 Conway. mkAddCommitteeTx Nothing committeeCred
270266 where
271- committeeHash = " e0a714319812c3f773ba04ec5d6b3ffcd5aad85006805b047b082541"
272- committeeCred = KeyHashObj (KeyHash committeeHash)
267+ committeeCred = Prelude. head Forging. unregisteredCommitteeCreds
273268
274269rollbackBlocks ::
275270 Interpreter ->
0 commit comments