dappuniversity / eth-todo-list

Blockchain Todo App Tutorial Powered by Ethereum Smart Contracts
549 stars 549 forks source link

web3 no longer supported by Metamask #37

Open jasonnalewak opened 1 year ago

jasonnalewak commented 1 year ago

I got the existing app.js file as is to work with Metamask by using the following script lines inserted after the meta tags in the html header section:

    <!-- The legacy-web3 script must run BEFORE your other scripts. -->
    <script src="https://unpkg.com/@metamask/legacy-web3@latest/dist/metamask.web3.min.js"></script>
    <!-- Or: -->
    <script src="https://unpkg.com/@metamask/legacy-web3@latest/dist/metamask.web3.js"></script>

This prevented me from having to refactor to use the new ethereum provider.

ALWISH007 commented 1 year ago

So we no longer require a javascript code to indentify the web3 provider(node provider)???