Skip to content

Commit

Permalink
Update cardano-cli/src/Cardano/CLI/EraBased/Run/CreateTestnetData.hs
Browse files Browse the repository at this point in the history
Co-authored-by: carlhammann <[email protected]>
  • Loading branch information
smelc and carlhammann authored Nov 30, 2023
1 parent f9345c1 commit efd18b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ updateCreateStakedOutputTemplate
distribute :: Integer -> Int -> [AddressInEra ShelleyEra] -> [(AddressInEra ShelleyEra, Lovelace)]
distribute funds nAddrs addrs = zip addrs (fmap Lovelace (coinPerAddr + remainder:repeat coinPerAddr))
where coinPerAddr, remainder :: Integer
(,) coinPerAddr remainder = funds `divMod` fromIntegral nAddrs
(coinPerAddr, remainder) = funds `divMod` fromIntegral nAddrs

mkStuffedUtxo :: [AddressInEra ShelleyEra] -> [(AddressInEra ShelleyEra, Lovelace)]
mkStuffedUtxo xs = (, Lovelace minUtxoVal) <$> xs
Expand Down

0 comments on commit efd18b4

Please sign in to comment.