From 383c57f1f9c0eb67bb67c5c73f0ac9da225a8109 Mon Sep 17 00:00:00 2001 From: tvman99 <41744432+tvman99@users.noreply.github.com> Date: Wed, 26 May 2021 17:56:32 +0800 Subject: [PATCH] Revert "fixed incorrect datum of give tx" --- code/week03/src/Week03/Solution1.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/week03/src/Week03/Solution1.hs b/code/week03/src/Week03/Solution1.hs index e3ad625..016fef9 100644 --- a/code/week03/src/Week03/Solution1.hs +++ b/code/week03/src/Week03/Solution1.hs @@ -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