Skip to content

Commit 66f1812

Browse files
neilmayhewlehins
authored andcommitted
cardano-ledger upgrade: accommodate new ledgerSlotNo field in LedgerEnv
1 parent a36a72f commit 66f1812

File tree

1 file changed

+3
-2
lines changed
  • ouroboros-consensus-cardano/src/unstable-shelley-testlib/Test/ThreadNet/TxGen

1 file changed

+3
-2
lines changed

ouroboros-consensus-cardano/src/unstable-shelley-testlib/Test/ThreadNet/TxGen/Shelley.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ genTx _cfg slotNo TickedShelleyLedgerState { tickedShelleyLedgerState } genEnv =
103103
epochState = SL.nesEs tickedShelleyLedgerState
104104

105105
ledgerEnv :: SL.LedgerEnv (MockShelley h)
106-
ledgerEnv = SL.LedgerEnv {
107-
ledgerSlotNo = slotNo
106+
ledgerEnv = SL.LedgerEnv
107+
{ ledgerEpochNo = Nothing
108+
, ledgerSlotNo = slotNo
108109
, ledgerIx = minBound
109110
, ledgerPp = getPParams tickedShelleyLedgerState
110111
, ledgerAccount = SL.esAccountState epochState

0 commit comments

Comments
 (0)