From cb677dfd449ed67839ac040818c1a5d40adfa5d7 Mon Sep 17 00:00:00 2001 From: Rohan Pillai <32511124+rohanpillai20@users.noreply.github.com> Date: Fri, 5 Oct 2018 09:41:41 +0530 Subject: [PATCH] Update README.md Added 2 commands to include Web3 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 48ef2c7..a91a22e 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Directions: 3. Open up Nodejs console ```node``` 4. Compile the contract ``` + Web3 = require('web3') + web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); code = fs.readFileSync('Voting.sol').toString() solc = require('solc') compiledCode = solc.compile(code)