Metamask-extension: web3.eth.coinbase is still null when metamask is re-logged in.

Created on 17 Jan 2019  Â·  10Comments  Â·  Source: MetaMask/metamask-extension

Describe the bug
web3.eth.coinbase is still null when metamask is re-logged in.

To Reproduce
Steps to reproduce the behavior:

  1. Login to metamask
  2. Go to console in browser
  3. Type _console.log(window.web3.eth.coinbase);_ //return correct coinbase
  4. Log out metamask
  5. Type _console.log(window.web3.eth.coinbase);_ //return null
  6. Login to metamask
  7. Type _console.log(window.web3.eth.coinbase);_ //still return null

Browser details (please complete the following information):

  • OS: OS
  • Browser Chome
  • MetaMask Version: 5.3.0
T00-bug

Most helpful comment

Follow the step to reconnecting host on chrome Metamask plugin

connection

All 10 comments

Reproduced, V6.3.0 in Chrome. Same behavior with web3.eth.accounts, returns an empty array. Investigating now

@ContemporaryAnarchy Check your Privacy Mode setting in MetaMask, Settings -> Security & Privacy as of v6.3.0 first time users will have the setting on my default, which with return null until the Dapp requests access.

Hey tmas! This issue persists regardless of privacy mode setting. @kumavis discovered is was the contentscript manually setting the selectedAddress to 'undefined'. I believe this is being fixed in this PR https://github.com/MetaMask/metamask-extension/pull/6410

Follow the step to reconnecting host on chrome Metamask plugin

connection

I recently solved this issue by downgrading metamask to version 6.7. So, you should try.

Follow the step to reconnecting host on chrome Metamask plugin

connection

This worked for me, thanks

Follow the step to reconnecting host on chrome Metamask plugin

connection

Thanks for the guidance

Follow the step to reconnecting host on chrome Metamask plugin

connection

this works for me too! thanks

Thanks for the guidance,I appreciate your support I had almost to give up
on place,but I can’t do that my best place and trusted is MetaMask and
Github the two guided me up the level best where I am now.

Regards,

Fred.

On Sat, 25 Apr 2020 at 05:59, Andre Hadianto notifications@github.com
wrote:

Follow the step to reconnecting host on chrome Metamask plugin

[image: connection]
https://user-images.githubusercontent.com/5406236/63777549-e9ba6280-c900-11e9-9b4b-16f0ee04f45b.jpg

this works for me too! thanks

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/MetaMask/metamask-extension/issues/6030#issuecomment-619309817,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJEA3H36JZIWDYZ7QJEAEADROJGX5ANCNFSM4GQRYIZQ
.

>

FredBuluku

In late 2020 there is no longer a option to add it from the metamask level, you need to enter localhost and then do the following:

image

After this there should be a "Manually connect to current site". Proceed, and it should work just fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BassBauman picture BassBauman  Â·  3Comments

1blockologist picture 1blockologist  Â·  3Comments

MarkOSullivan94 picture MarkOSullivan94  Â·  3Comments

estebanmino picture estebanmino  Â·  3Comments

kumavis picture kumavis  Â·  3Comments