I am using Metamask for ethereum testnet. And when i deploy my contract it run in my memory. And when I select the Injected Web3. It is not selected. Now what to do??

Please help me.

  • Here is the link of browser-solidity link. Mar 28 '17 at 15:03
  • I had the same problem as you Anurag Verma and fixed it by updating my MetaMask plugin.
    – Holyxhellx
    Mar 29 '17 at 8:41

I got the same solution, and when I have update MetaMask it works fine (web3 injected seen in the console).

To update MetaMask:

1/Click right button in MetaMask.

2/Manage extensions.

3/Click on Developer Mode.

4/update extension.

5/Enjoy ! ;)

  • you made my day 😀😀👍
    – M00HY
    Dec 16 '21 at 14:44

In version 3.5.1, MetaMask refined the logic of what pages it would inject web3 in, checking for a valid html doctype header, to prevent injecting metamask logic into random XML pages.

Browser-solidity does not use a valid html doctype header.

I submitted a patch to browser-solidity for this, but we've also patched MetaMask to be more permissive, and in MetaMask version 3.5.2 browser solidity should work again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.