@@ -31,8 +31,6 @@ import Cardano.Ledger.Coin (Coin (..))
31
31
import Cardano.Ledger.Conway.Governance (GovActionId (.. ), GovActionIx (.. ))
32
32
import qualified Cardano.Ledger.Conway.Governance as Governance
33
33
import Cardano.Ledger.Core (txIdTx )
34
- import Cardano.Ledger.Credential (Credential (.. ))
35
- import Cardano.Ledger.Keys (KeyHash (.. ))
36
34
import Cardano.Ledger.SafeHash (SafeToHash (.. ))
37
35
import Cardano.Mock.ChainSync.Server (IOManager , ServerHandle )
38
36
import Cardano.Mock.Forging.Interpreter (Interpreter , getCurrentEpoch )
@@ -168,13 +166,11 @@ chainedNewCommittee =
168
166
169
167
let
170
168
-- Propose a new committee member
171
- committee1Hash = " e0a714319812c3f773ba04ec5d6b3ffcd5aad85006805b047b082541"
172
- committee1Cred = KeyHashObj (KeyHash committee1Hash)
169
+ committee1Cred = Prelude. head Forging. unregisteredCommitteeCreds
173
170
proposal1 = Conway. mkAddCommitteeTx Nothing committee1Cred
174
171
175
172
-- Propose another, using proposal1 as the prev governance action
176
- committee2Hash = " f15d3cfda3ac52c86d2d98925419795588e74f4e270a3c17beabeaff"
177
- committee2Cred = KeyHashObj (KeyHash committee2Hash)
173
+ committee2Cred = Forging. unregisteredCommitteeCreds Prelude. !! 1
178
174
proposal2 = Conway. mkAddCommitteeTx (Just prevGovActionId) committee2Cred
179
175
proposal2TxHash = unTxHash (txIdTx proposal2)
180
176
@@ -268,8 +264,7 @@ proposeNewCommittee :: AlonzoTx Consensus.StandardConway
268
264
proposeNewCommittee =
269
265
Conway. mkAddCommitteeTx Nothing committeeCred
270
266
where
271
- committeeHash = " e0a714319812c3f773ba04ec5d6b3ffcd5aad85006805b047b082541"
272
- committeeCred = KeyHashObj (KeyHash committeeHash)
267
+ committeeCred = Prelude. head Forging. unregisteredCommitteeCreds
273
268
274
269
rollbackBlocks ::
275
270
Interpreter ->
0 commit comments