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

MetaMask on-boarding lib not working within another extension using MetaMask extension-provider #9299

Closed
Tedko opened this issue Aug 24, 2020 · 3 comments

Comments

@Tedko
Copy link

Tedko commented Aug 24, 2020

What problem are you trying to solve?

Please refer to MetaMask/extension-provider#9

In short

the onboarding library doesn't work for another web extension.

https://github.com/MetaMask/metamask-onboarding/blob/master/src/index.ts#L154

In this line, you detect metamask by window.ethereum.isMetaMask but window.ethereum is not available in the web extension. This is why I'm using extension-provider . There should be other browser APIs could do so (some communication between extensions)

For What's Maskbook:

#8593
MetaMask/metamask-snaps-beta#62

Describe the solution you'd like
another extension know if Metamask is already installed (so we can have things similar to onboarding lib etc)

Additional context
90493679-3d0e6c00-e175-11ea-8333-00d952176570

How maskbook extension is using MetaMask (we can also send red packet etc / call smart contract right on top of twitter./fb)

@Tedko
Copy link
Author

Tedko commented Aug 24, 2020

@danfinlay thx for helping

@Tedko
Copy link
Author

Tedko commented Aug 24, 2020

@Jack-Works Lets stick on this issue

@Tedko
Copy link
Author

Tedko commented Sep 30, 2020

I believe this is fixed(?) not using on-boarding lib though

@Tedko Tedko closed this as completed Sep 30, 2020
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