Skip to content

Commit

Permalink
docs: fix exercise and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Nov 12, 2024
1 parent 7f167d2 commit d0a77a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions HelloWorld/Exercise_1/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion HelloWorld/Exercise_2/Resource.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Applib open;
import WorkshopUtils open;

{-
TODO: Write a logic function checkiong that the consumption of the resource was authorized by the owner.
TODO: Write a logic function checking that the consumption of the resource was authorized by the owner.
As a bonus, ensure that the quantity is 1.
-}
logic (publicInputs : Logic.Instance) (privateInputs : Logic.Witness) : Bool :=
Expand Down
8 changes: 5 additions & 3 deletions HelloWorld/Exercise_3/Transaction.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ import Applib open;
import WorkshopUtils open;
import Exercise_3.Resource open;

-- TODO
{-
TODO: Write a function that transfers the `existingHelloWorld` resource to the `receiver`.
-}
transferHelloWorld
(standardInputs : StandardInputs)
(existingHello : Resource)
(existingHelloWorld : Resource)
(receiver : ExternalIdentity)
: Transaction :=
let
nonce := generateNonce (StandardInputs.randSeed standardInputs);
in prepareTransaction@{
standardInputs;
consumed := Set.singleton existingHello;
consumed := TODO;
created := TODO;
};

0 comments on commit d0a77a5

Please sign in to comment.