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

Detect used Metamask network #14

Closed
wants to merge 2 commits into from
Closed

Conversation

haythemsellami
Copy link
Member

In the current state, if user use a different network than Kovan, Cherryswap.deployed() will just throw an exception and the user will not notice what's happening without inspecting the console.
This PR fix detect if the network used, if different than Kovan show a message (Related to #13 ).

PS: First time with Vue.js so the code may not be perfect or need improvement! idk 💃

@vercel
Copy link

vercel bot commented Sep 22, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://cherryswap-git-detect-metamask-network.neapolitanswaps.now.sh

@haythemsellami
Copy link
Member Author

@chrisjgf When you have time please check this PR, the modification here help notifying the user to use the correct network to interact with the smart contracts. It only need improvement in the frontend for the alert styling.

@haythemsellami haythemsellami deleted the detect-metamask-network branch December 25, 2019 14:19
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

Successfully merging this pull request may close these issues.

1 participant