Skip to content

Commit

Permalink
Rename InitialDistribution field to fit convention
Browse files Browse the repository at this point in the history
  • Loading branch information
florentc committed Feb 6, 2023
1 parent 492ab94 commit f63e983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cooked-validators/src/Cooked/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ txAddSignature w = Pl.addSignature' (walletSK w)
-- and permanent values. (Remember: 1 Ada = 1000000 Lovelace)
--
-- Check the corresponding @Default InitialDistribution@ instance for the default value.
newtype InitialDistribution = InitialDistribution {distribution :: Map Wallet [Pl.Value]}
newtype InitialDistribution = InitialDistribution {unInitialDistribution :: Map Wallet [Pl.Value]}
deriving (Eq, Show)

instance Semigroup InitialDistribution where
Expand Down Expand Up @@ -172,7 +172,7 @@ initialTxFor initDist =
-- initUtxosFor w v = Pl.TxOut $ Api.TxOut addr val Api.TxOutDatumNone Api.ReferenceScriptNone
initUtxosFor w v = toPlTxOut @() (walletAddress w) v Nothing

initDist' = Map.toList $ distribution initDist
initDist' = Map.toList $ unInitialDistribution initDist

toPlTxOut :: Pl.ToData a => Pl.Address -> Pl.Value -> Maybe a -> Pl.TxOut
toPlTxOut addr value datum = toPlTxOut' addr value datum'
Expand Down

0 comments on commit f63e983

Please sign in to comment.