@@ -754,7 +754,7 @@ runGenesisCreateStaked (GenesisDir rootdir)
754
754
writeFileGenesis (rootdir </> " genesis.alonzo.json" ) alonzoGenesis
755
755
-- TODO: rationalise the naming convention on these genesis json files.
756
756
757
- liftIO $ Text. putStrLn $ mconcat $
757
+ liftIO $ Text. hPutStrLn stderr $ mconcat $
758
758
[ " generated genesis with: "
759
759
, textShow genNumGenesisKeys, " genesis keys, "
760
760
, textShow genNumUTxOKeys, " non-delegating UTxO keys, "
@@ -1141,10 +1141,9 @@ updateCreateStakedOutputTemplate
1141
1141
delegCoin = fromIntegral amountDeleg
1142
1142
1143
1143
distribute :: Integer -> Int -> [AddressInEra ShelleyEra ] -> [(AddressInEra ShelleyEra , Lovelace )]
1144
- distribute funds nAddrs addrs = zip addrs (fmap Lovelace (coinPerAddr + rest: repeat coinPerAddr))
1145
- where coinPerAddr :: Integer
1146
- coinPerAddr = funds `div` fromIntegral nAddrs
1147
- rest = coinPerAddr * fromIntegral nAddrs
1144
+ distribute funds nAddrs addrs = zip addrs (fmap Lovelace (coinPerAddr + remainder: repeat coinPerAddr))
1145
+ where coinPerAddr, remainder :: Integer
1146
+ (,) coinPerAddr remainder = funds `divMod` fromIntegral nAddrs
1148
1147
1149
1148
mkStuffedUtxo :: [AddressInEra ShelleyEra ] -> [(AddressInEra ShelleyEra , Lovelace )]
1150
1149
mkStuffedUtxo xs = (, Lovelace minUtxoVal) <$> xs
0 commit comments