Full Stack Hello World Voting Ethereum Dapp Tutorial — Part 2
Mahesh Murthy

I ran into another issue, I kept getting “TypeError: Cannot read property ‘0’ of null” when running ``truffle console``.

Turns out when starting geth, no address was created. To fix it, created a new one using steps from tutorial 1.

npm install web3
>Web3 = require(‘web3’)
> web3 = new Web3(new Web3.providers.HttpProvider(“httpp://localhost:8545));

In my testnet window, I was greeted with a message that a new wallet was created.

Next I ran ``truffle console`` and it worked! Hope this helps someone. I’m still not sure why truffle required a wallet first, when in this tutorial, the truffle console was used to make a new wallet.

Unless.. geth was supposed to create a default wallet for me. In which case, I’m not sure why it didn’t.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.