Revert "fixed incorrect datum of give tx"

This commit is contained in:
tvman99 2021-05-26 17:56:32 +08:00 committed by GitHub
parent 82a07c6bef
commit 383c57f1f9
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 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