Skip to content

Commit

Permalink
Merge pull request #1186 from kadena-community/chore/docs/election-tu…
Browse files Browse the repository at this point in the history
…torial-fixes

chore(docs): fix errors in election dapp tutorial
  • Loading branch information
jessevanmuijden authored Nov 7, 2023
2 parents 472b801 + af020b0 commit 6d83714
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

2 comments on commit 6d83714

@vercel
Copy link

@vercel vercel bot commented on 6d83714 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

alpha-docs – ./packages/apps/docs

alpha-docs-kadena-js.vercel.app
alpha-docs-git-main-kadena-js.vercel.app
docs.kadena.io
docs-silk-two.vercel.app
alpha-docs.kadena.io

@vercel
Copy link

@vercel vercel bot commented on 6d83714 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs-storybook – ./packages/apps/docs

docs-storybook-kadena-js.vercel.app
docs-storybook-git-main-kadena-js.vercel.app
kadena-js-docs.vercel.app

Please sign in to comment.