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

(Feature) Update metamask popup #157

Merged
merged 4 commits into from
Dec 4, 2018
Merged

Conversation

fernandomg
Copy link

Closes #151

Aside from creating the required modal. I also make the error handling more specific for each type of error. There are 3 different errors (no wallet installed, no wallet unlocked, and wallet account rejected -this is metamask specific-)

You can see the behavior for each type of error here (I'll let a transcription of the text displayed in each scenario; for any change required):

no wallet installed

install
message:

A wallet is not installed. Before continue, please install one (Metamask or Nifty Wallet) and return to this page to continue using the application.

For further information on how to install any of both wallets, please click the buttons below.

no wallet unlocked

unlock
message:

Please unlock your wallet and refresh the page

wallet account rejected

enable
message:

Wallet account rejected by user. You need to unlock your wallet. Please refresh the page and click 'Connect' button in your wallet popup.

 - add type and reword error messages
 - handle errors by type
 - Create `NoWallet` component
 - Include it into `App` component
@netlify
Copy link

netlify bot commented Nov 30, 2018

Deploy preview for kind-kilby-95344f processing.

Built with commit 06d1555

https://app.netlify.com/sites/kind-kilby-95344f/deploys/5c0589649a063f4a9b814ae3

src/stores/Web3Store.js Outdated Show resolved Hide resolved
@ghost ghost added the in progress label Dec 3, 2018
@akolotov akolotov merged commit bab1e30 into develop Dec 4, 2018
@ghost ghost removed the in progress label Dec 4, 2018
@akolotov akolotov removed the review label Dec 4, 2018
@akolotov akolotov deleted the 151-update-metamask-popup branch May 24, 2019 06:05
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.

3 participants