Skip to content

Commit 5392e7e

Browse files
Soupstrawlehins
andcommitted
Update libs/cardano-ledger-core/src/Cardano/Ledger/State/CertState.hs
Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
1 parent f088f7f commit 5392e7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/cardano-ledger-core/src/Cardano/Ledger/Core/PParams.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ import Data.Word (Word16, Word32)
124124
import GHC.Generics (Generic (..), K1 (..), M1 (..), U1, V1, type (:*:) (..))
125125
import Lens.Micro (Lens', SimpleGetter, lens, set, (^.))
126126
import NoThunks.Class (NoThunks)
127+
import GHC.Stack (HasCallStack)
127128

128129
-- | Protocol parameters
129130
newtype PParams era = PParams (PParamsHKD Identity era)

libs/cardano-ledger-core/src/Cardano/Ledger/State/CertState.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ payPoolDeposit ::
420420
payPoolDeposit keyhash pp pstate = pstate {psDeposits = newpool}
421421
where
422422
pool = psDeposits pstate
423-
!deposit = pp ^. ppPoolDepositL
423+
!deposit = pp ^. ppPoolDepositCompactL
424424
newpool
425-
| Map.notMember keyhash pool = Map.insert keyhash (compactCoinOrError deposit) pool
425+
| Map.notMember keyhash pool = Map.insert keyhash deposit pool
426426
| otherwise = pool
427427

428428
refundPoolDeposit :: KeyHash 'StakePool -> PState era -> (CompactForm Coin, PState era)

0 commit comments

Comments
 (0)