dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
563 stars 506 forks source link

Getcoinbase return null as account using metamask #26

Closed manishsingh10895 closed 1 year ago

manishsingh10895 commented 5 years ago

web3.eth.getCoinbase function returns account as null always when using metamask eth Provider, while using http provider using ganache works perfectly.

Metamask version 6.7.2

faruk13 commented 5 years ago

Even I stumbled upon this problem, do one thing go to metamask settings and switch off the privacy mode. Check out this Eth StackExchange answer https://ethereum.stackexchange.com/a/69914/47797

digu-007 commented 4 years ago

switch off the privacy mode.

@faruk13 There is no privacy mode in the settings, what should I do?

SHIVANGISINGH1 commented 2 years ago

Connecting to the site localhost:3000 manually from metamask worked for me.

manishsingh10895 commented 1 year ago

Closing this issue, as it is opened for too long and metamask and web3 apis have major changes.