Skip to content

Commit

Permalink
Updated syntax for web3js code block (#1380)
Browse files Browse the repository at this point in the history
* Updated revert reason doc w/revert reason & updated syntax for web3js-quorum doc

Signed-off-by: Mike Sanko <mike.sanko@consensys.net>

* Removed doc edit for web3.js code block

Signed-off-by: Mike Sanko <mike.sanko@consensys.net>

---------

Signed-off-by: Mike Sanko <mike.sanko@consensys.net>
Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com>
  • Loading branch information
mjsmike62 and alexandratran committed Aug 21, 2023
1 parent 7432323 commit 905e595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/private-networks/how-to/use-privacy/web3js-quorum.md
Expand Up @@ -46,15 +46,15 @@ Initialize your client where:
# Syntax

```js
const Web3 = require("web3");
const { Web3 } = require("web3");
const Web3Quorum = require("web3js-quorum");
const web3 = new Web3Quorum(new Web3("<JSON-RPC HTTP endpoint>"));
```

# Example

```js
const Web3 = require("web3");
const { Web3 } = require("web3");
const Web3Quorum = require("web3js-quorum");
const web3 = new Web3Quorum(new Web3("http://localhost:8545"));
```
Expand Down

0 comments on commit 905e595

Please sign in to comment.