diff --git a/shelley/chain-and-ledger/executable-spec/src/Shelley/Spec/Ledger/STS/PoolReap.hs b/shelley/chain-and-ledger/executable-spec/src/Shelley/Spec/Ledger/STS/PoolReap.hs index 92026b12aba..7cd23bfc2d1 100644 --- a/shelley/chain-and-ledger/executable-spec/src/Shelley/Spec/Ledger/STS/PoolReap.hs +++ b/shelley/chain-and-ledger/executable-spec/src/Shelley/Spec/Ledger/STS/PoolReap.hs @@ -72,7 +72,7 @@ poolReapTransition = do pr = Map.fromList $ fmap (\kh -> (kh, _poolDeposit pp)) (Set.toList retired) rewardAcnts = Map.map _poolRAcnt $ retired ◁ (_pParams ps) rewardAcnts' = - Map.fromList + Map.fromListWith (+) . Map.elems $ Map.intersectionWith (,) rewardAcnts pr (refunds, mRefunds) =