Skip to content

Commit

Permalink
docs: fix example in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Jul 10, 2024
1 parent d2ada06 commit 2ce05e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,26 @@ import { execute } from '@dyne/slangroom-chain';
const newAccount = `{"username": "Alice"}`;

const steps_definition = `
verbose: false,
verbose: false
steps:
- id: 'step1'
zencode: |
Scenario ecdh: create the keyring at user creation
Given that my name is in a 'string' named 'username'
When I create the keyring
When I create the ecdh key
Then print my 'keyring'
data: ${newAccount}
- id: 'step2'
zencode: |
Scenario 'ecdh': Create and publish public key
Given that my name is in a 'string' named 'username'
and I have my 'keypair'
and I have my 'keyring'
When I create the ecdh public key
Then print my 'ecdh public key'
data: ${newAccount}
keysFromStep: 'step1'`;

execute(steps).then((r) => console.log(r));
execute(steps_definition).then((r) => console.log(r));
```

### Step definitions
Expand Down

0 comments on commit 2ce05e3

Please sign in to comment.