Skip to content

Commit

Permalink
plutus-doc: pubkeyhash
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller committed Oct 11, 2021
1 parent 14ac0c3 commit 97d0f6e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doc/plutus/tutorials/BasicApps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ unlock = endpoint @"unlock" (unlockFunds . mkSplitData)

mkSplitData :: LockArgs -> SplitData
mkSplitData LockArgs{recipient1Wallet, recipient2Wallet, totalAda} =
let convert :: Wallet -> PubKeyHash
convert = pubKeyHash . walletPubKey
in
SplitData
{ recipient1 = convert recipient1Wallet
, recipient2 = convert recipient2Wallet
{ recipient1 = walletPubKeyHash recipient1Wallet
, recipient2 = walletPubKeyHash recipient2Wallet
, amount = totalAda
}

Expand Down

0 comments on commit 97d0f6e

Please sign in to comment.