Skip to content

Commit

Permalink
Typically you will have only one Web3 connection, use const (#3967)
Browse files Browse the repository at this point in the history
Co-authored-by: Gregory Markou <16929357+GregTheGreek@users.noreply.github.com>
  • Loading branch information
fulldecent and GregTheGreek authored Jul 21, 2021
1 parent 9c31732 commit 46f9f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ If this property is ``null`` you should connect to a remote/local node.
// In Node.js use: const Web3 = require('web3');
let web3 = new Web3(Web3.givenProvider || "ws://localhost:8545");
const web3 = new Web3(Web3.givenProvider || "ws://localhost:8545");
That's it! now you can use the ``web3`` object.

0 comments on commit 46f9f6b

Please sign in to comment.