Skip to content

Adds token to Metamask - Faucet App#1186

Merged
dutterbutter merged 3 commits into
developfrom
PS/faucet-add-token-metamask
May 10, 2023
Merged

Adds token to Metamask - Faucet App#1186
dutterbutter merged 3 commits into
developfrom
PS/faucet-add-token-metamask

Conversation

@devpavan04
Copy link
Copy Markdown
Contributor

Summary of changes

  • Adds token to Metamask when user clicks Add token to Metamask button.

Proposed area of change

  • apps/bridge-dapp
  • apps/stats-dapp
  • apps/webbsite
  • apps/faucet
  • apps/tangle-website
  • libs/webb-ui-components

Reference issue to close (if applicable)

Screen Recording

CleanShot.2023-05-09.at.19.25.32.mp4

@github-actions
Copy link
Copy Markdown

Deploy Preview for webb faucet is ready! Thanks for the contribution @devpavan04

Name Link
🔨 Latest commit 8a4c703eb1b1b1d530af5807960678480be7c729
🔍 Latest deploy log https://app.netlify.com/sites/webb-faucet/deploys/645b058ac60a95671c162d44
😎 Deploy Preview https://645b058ac60a95671c162d44--webb-faucet.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Copy Markdown
Contributor

@AtelyPham AtelyPham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment, otherwise LGTM!


console.log('Token added to Metamask');
} catch (error) {
console.error(error);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the token is added to Metamask already, the provider.request will throw an error or warning I'm pretty sure but we should somehow notify the user about that, we could do that in a separate PR.

@dutterbutter dutterbutter merged commit 216e325 into develop May 10, 2023
@dutterbutter dutterbutter deleted the PS/faucet-add-token-metamask branch May 10, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Add token to MetaMask button on Webb faucet

3 participants