Skip to content

Commit

Permalink
chore(docs): fix errors in election dapp tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
jessevanmuijden committed Nov 7, 2023
1 parent 472b801 commit af020b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-dancers-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kadena/docs': patch
---

fix small errors in election dapp tutorial
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ After you have completed this entire tutorial, you may want to deploy your elect
smart contract to Testnet. Many others like you would perhaps like to do the same.
If everyone would deploy Pact modules with the same name to the same network, however,
it would become impossible to distinguish your Pact module from all the others. Therefore,
it is not allowed to
deploy a Pact module with a name that already exists on the chain you are deploying to
it is not allowed to deploy a Pact module with a name that is already used by someone
else on the chain you are deploying to
and your deployment transaction will fail with an error if you try. Fortunately,
Kadena offers a solution to this problem by introducing namespaces. You can create
your own unique namespace on the blockchain and you get to decide who can update the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ file and run it.

```pact
(env-data
{ 'admin-key :
{ 'admin-keyset :
{ 'keys : [ 'other-public-key ]
, 'pred : 'keys-all
}
Expand Down Expand Up @@ -268,6 +268,10 @@ the statement `(namespace ns-name)`. Finally, you need to add a signature for th
to succeed.

```pact
(begin-tx)
(load "root/ns.pact")
(commit-tx)
(env-sigs
[{ 'key : "368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"
, 'caps : []
Expand Down

0 comments on commit af020b0

Please sign in to comment.