fixed incorrect datum of give tx

This commit is contained in:
tvman99 2021-05-26 03:20:19 +08:00
parent acda69c166
commit 36cdb1e753

View file

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