Skip to content

Commit

Permalink
remove warnings from skeletn template (#6762)
Browse files Browse the repository at this point in the history
If a user were to follow @cocreature's [suggestions][0] for compiler
warnings, the current skeleton template would generate two warnings.
That seems like it may give a bad impression, so I believe we should fix
it, even though the warnings are not enabled by default.

[0]: https://discuss.daml.com/t/making-the-most-out-of-daml-compiler-warnings/739

CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
garyverhaegen-da authored Jul 16, 2020
1 parent 4be01e4 commit 92c4aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/skeleton/daml/Main.daml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ template Asset
create this with
owner = newOwner

setup : Scenario AssetId
setup = scenario do
alice <- getParty "Alice"
bob <- getParty "Bob"
Expand Down
2 changes: 1 addition & 1 deletion templates/skeleton/daml/Setup.daml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ initialize = do
bobTV <- submit alice do
exerciseCmd aliceTV Give with newOwner = bob

submit bob do
_ <- submit bob do
exerciseCmd bobTV Give with newOwner = alice

pure ()

0 comments on commit 92c4aac

Please sign in to comment.