Skip to content

Commit 905e595

Browse files
Updated syntax for web3js code block (#1380)
* Updated revert reason doc w/revert reason & updated syntax for web3js-quorum doc Signed-off-by: Mike Sanko <[email protected]> * Removed doc edit for web3.js code block Signed-off-by: Mike Sanko <[email protected]> --------- Signed-off-by: Mike Sanko <[email protected]> Co-authored-by: Alexandra Tran Carrillo <[email protected]>
1 parent 7432323 commit 905e595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/private-networks/how-to/use-privacy/web3js-quorum.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ Initialize your client where:
4646
# Syntax
4747

4848
```js
49-
const Web3 = require("web3");
49+
const { Web3 } = require("web3");
5050
const Web3Quorum = require("web3js-quorum");
5151
const web3 = new Web3Quorum(new Web3("<JSON-RPC HTTP endpoint>"));
5252
```
5353

5454
# Example
5555

5656
```js
57-
const Web3 = require("web3");
57+
const { Web3 } = require("web3");
5858
const Web3Quorum = require("web3js-quorum");
5959
const web3 = new Web3Quorum(new Web3("http://localhost:8545"));
6060
```

0 commit comments

Comments
 (0)