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

Leap Metamask snap not working #132

Closed
codingki opened this issue Jan 19, 2024 · 3 comments
Closed

Leap Metamask snap not working #132

codingki opened this issue Jan 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@codingki
Copy link
Member

codingki commented Jan 19, 2024

Check version of the metamask

@codingki codingki added the bug Something isn't working label Jan 19, 2024
@codingki
Copy link
Member Author

codingki commented Jan 19, 2024

remove this

const isMetamask = (clientVersion as string).includes("MetaMask");
if (!isMetamask) throw new Error("Metamask is not installed");
const version = (clientVersion as string).split("MetaMask/v")[1]?.split(".")[0];
const isSupportMMSnap = Number(version) >= 11;
if (!isSupportMMSnap) throw new Error("Metamask Snap is not supported in this version");

@codingki
Copy link
Member Author

the issue is if there's a okxwallet installed, its injecting okxwallet's ethereum object to window.ethereum

@codingki
Copy link
Member Author

solved in 0.1.4 #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant