Skip to content

Commit

Permalink
Clarify instructions
Browse files Browse the repository at this point in the history
The instructions at this place were unclear, see openwallet-foundation#1477. This is a proposed fix that makes it clear that the "lost" code should be copy-pasted.
  • Loading branch information
eliasschoof authored Nov 9, 2021
1 parent 576bcad commit 25bd80b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions demo/AcmeDemoWorkshop.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,18 @@ We're going to do option (a), but you can try to implement option (b) as homewor
First though we need to register a schema and credential definition. Find this code:

``` python
# TODO: Create schema
# acme_schema_name = "employee id schema"
# acme_schema_attrs = ["employee_id", "name", "date", "position"]
await acme_agent.initialize(
the_agent=agent,
# schema_name=acme_schema_name,
# schema_attrs=acme_schema_attrs,
)

# TODO publish schema and cred def
```

... and just remove the ```TODO ```, then uncommment the rest. Easy, no?
... and uncomment the code lines. Replace the ```# TODO``` comment with the following code:

``` python
with log_timer("Publish schema and cred def duration:"):
Expand All @@ -194,7 +196,8 @@ First though we need to register a schema and credential definition. Find this
random.randint(1, 101),
)
)
# (schema_id, cred_def_id) = await agent.register_schema_and_creddef(
# register schema and cred def
(schema_id, cred_def_id) = await agent.register_schema_and_creddef(
"employee id schema",
version,
["employee_id", "name", "date", "position"],
Expand Down

0 comments on commit 25bd80b

Please sign in to comment.