Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work with the latest version of the Metamask extension #5

Open
in19farkt opened this issue Feb 1, 2021 · 0 comments
Open

Don't work with the latest version of the Metamask extension #5

in19farkt opened this issue Feb 1, 2021 · 0 comments

Comments

@in19farkt
Copy link

Metamask no longer inject Web3 into the global https://docs.metamask.io/guide/provider-migration.html#replacing-window-web3. This leads to an error when trying to connect Metamask on the contract/operations page.

Workaround:

  1. open developer tools
  2. past code snippet, and press "Enter"
    (function(d, script) {
      script = d.createElement('script');
      script.type = 'text/javascript';
      script.async = true;
      script.src = 'https://unpkg.com/@metamask/legacy-web3@latest/dist/metamask.web3.min.js';
      d.getElementsByTagName('head')[0].appendChild(script);
    }(document));
    
  3. go to Contract/Operations page and connect Metamask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant