Merge pull request #22 from input-output-hk/revert-20-fix-week3-solution

Revert "fixed incorrect datum of give tx"
This commit is contained in:
Lars Brünjes 2021-05-26 12:05:20 +02:00 committed by GitHub
commit ee6c4c1bfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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