Skip to content

Commit af020b0

Browse files
chore(docs): fix errors in election dapp tutorial
1 parent 472b801 commit af020b0

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.changeset/tall-dancers-pay.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@kadena/docs': patch
3+
---
4+
5+
fix small errors in election dapp tutorial

packages/apps/docs/src/pages/build/guides/election-dapp-tutorial/04-namespaces.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ After you have completed this entire tutorial, you may want to deploy your elect
1414
smart contract to Testnet. Many others like you would perhaps like to do the same.
1515
If everyone would deploy Pact modules with the same name to the same network, however,
1616
it would become impossible to distinguish your Pact module from all the others. Therefore,
17-
it is not allowed to
18-
deploy a Pact module with a name that already exists on the chain you are deploying to
17+
it is not allowed to deploy a Pact module with a name that is already used by someone
18+
else on the chain you are deploying to
1919
and your deployment transaction will fail with an error if you try. Fortunately,
2020
Kadena offers a solution to this problem by introducing namespaces. You can create
2121
your own unique namespace on the blockchain and you get to decide who can update the

packages/apps/docs/src/pages/build/guides/election-dapp-tutorial/05-keysets.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ file and run it.
189189

190190
```pact
191191
(env-data
192-
{ 'admin-key :
192+
{ 'admin-keyset :
193193
{ 'keys : [ 'other-public-key ]
194194
, 'pred : 'keys-all
195195
}
@@ -268,6 +268,10 @@ the statement `(namespace ns-name)`. Finally, you need to add a signature for th
268268
to succeed.
269269

270270
```pact
271+
(begin-tx)
272+
(load "root/ns.pact")
273+
(commit-tx)
274+
271275
(env-sigs
272276
[{ 'key : "368820f80c324bbc7c2b0610688a7da43e39f91d118732671cd9c7500ff43cca"
273277
, 'caps : []

0 commit comments

Comments
 (0)