Skip to content

Commit

Permalink
Update outdated example (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu authored Feb 9, 2022
1 parent f636be1 commit 558c540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Next we connect to the running testnet node from our Java application by creatin
`ErgoClient` instance.
```java
ErgoNodeConfig nodeConf = conf.getNode();
ErgoClient ergoClient = RestApiErgoClient.create(nodeConf);
ErgoClient ergoClient = RestApiErgoClient.create(nodeConf, null);
```

Using `ErgoClient` we can
Expand Down Expand Up @@ -171,8 +171,8 @@ if (!boxes.isPresent())
// the prover should be configured with secrets, which are nessesary to generate signatures (aka proofs)
ErgoProver prover = ctx.newProverBuilder()
.withMnemonic(
nodeConf.getWallet().getMnemonic(),
nodeConf.getWallet().getPassword())
SecretString.create(nodeConf.getWallet().getMnemonic()),
SecretString.create(nodeConf.getWallet().getMnemonicPassword()))
.build();
```

Expand Down

0 comments on commit 558c540

Please sign in to comment.