Merge branch 'main' into solutions

This commit is contained in:
Lars Brünjes 2021-05-26 12:27:49 +02:00
commit c6d7e83ba1

View file

@ -88,8 +88,8 @@ give :: (HasBlockchainActions s, AsContractError e) => GiveParams -> Contract w
give gp = do give gp = do
pkh <- pubKeyHash <$> ownPubKey pkh <- pubKeyHash <$> ownPubKey
let dat = VestingDatum let dat = VestingDatum
{ beneficiary1 = pkh { beneficiary1 = gpBeneficiary gp
, beneficiary2 = gpBeneficiary gp , beneficiary2 = pkh
, deadline = gpDeadline gp , deadline = gpDeadline gp
} }
tx = mustPayToTheScript dat $ Ada.lovelaceValueOf $ gpAmount gp tx = mustPayToTheScript dat $ Ada.lovelaceValueOf $ gpAmount gp