mirror of
https://github.com/FiloSpaTeam/plutus-pioneer-program.git
synced 2024-11-25 00:02:18 +01:00
fixed incorrect datum of give tx
This commit is contained in:
parent
acda69c166
commit
36cdb1e753
1 changed files with 2 additions and 2 deletions
|
@ -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 = gpBeneficiary gp
|
{ beneficiary1 = pkh
|
||||||
, beneficiary2 = pkh
|
, beneficiary2 = gpBeneficiary gp
|
||||||
, deadline = gpDeadline gp
|
, deadline = gpDeadline gp
|
||||||
}
|
}
|
||||||
tx = mustPayToTheScript dat $ Ada.lovelaceValueOf $ gpAmount gp
|
tx = mustPayToTheScript dat $ Ada.lovelaceValueOf $ gpAmount gp
|
||||||
|
|
Loading…
Reference in a new issue