From 905e595e18da7b62990e430d6058ca42ee34b7a2 Mon Sep 17 00:00:00 2001 From: Mike Sanko Date: Mon, 21 Aug 2023 13:30:33 -0400 Subject: [PATCH] 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 * Removed doc edit for web3.js code block Signed-off-by: Mike Sanko --------- Signed-off-by: Mike Sanko Co-authored-by: Alexandra Tran Carrillo <12214231+alexandratran@users.noreply.github.com> --- docs/private-networks/how-to/use-privacy/web3js-quorum.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/private-networks/how-to/use-privacy/web3js-quorum.md b/docs/private-networks/how-to/use-privacy/web3js-quorum.md index 5e96ec51a9e..5538b3f9bc9 100644 --- a/docs/private-networks/how-to/use-privacy/web3js-quorum.md +++ b/docs/private-networks/how-to/use-privacy/web3js-quorum.md @@ -46,7 +46,7 @@ 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("")); ``` @@ -54,7 +54,7 @@ const web3 = new Web3Quorum(new Web3("")); # Example ```js -const Web3 = require("web3"); +const { Web3 } = require("web3"); const Web3Quorum = require("web3js-quorum"); const web3 = new Web3Quorum(new Web3("http://localhost:8545")); ```