trufflesuite / trufflesuite.github.io

Staging Repo of Build Artifacts for Truffle Suite. Find the source at https://github.com/trufflesuite/trufflesuite.com
https://www.trufflesuite.com
34 stars 161 forks source link

Update "using-infura-custom-provider.md" tutorial to web3 0.14.0 #168

Closed yatskevich closed 6 years ago

yatskevich commented 6 years ago

From web3.js docs:

web3.js version 0.14.0 supports multiple instances of web3 object. To migrate to this version, please follow the guide:

-var web3 = require('web3');
+var Web3 = require('web3');
+var web3 = new Web3();
yatskevich commented 6 years ago

Closing in favor of #173