I am trying to compile this contract (part of an online tutorial, not my contract). I'm running ethereumjs-testrpc (ganace precursor) on one terminal, then on another instantiate web3 object;
> Web3 = require('web3')
> web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
From there I get confirmation Im running on test network, I can call the dummy accounts, etc.
Then from there I believe I need to cast my .sol contract to a string object;
code = fs.readFileSync('voting.sol').toString()
I'm assuming there's an error in my contract, can't figure out where..