Skip to content

Conversation

@baptiste-marchand
Copy link
Contributor

No description provided.

window.removeEventListener('message', messageHandler);
reject(new Error('MetaMask extension not found'));
}, 3000);
}, 10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

my slight gripe with this approach is that even if we get a response from metamask_getProviderState before 10s, if it doesn't have extensionId we won't return an error until the 10s timeout has been reached.

I'm not sure if that is a big deal though, but this is why I think putting an id in the metamask_getProviderState so that we can identify the response is important

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@baptiste-marchand baptiste-marchand marked this pull request as ready for review August 1, 2025 06:51
@baptiste-marchand baptiste-marchand requested a review from a team August 1, 2025 06:51
@baptiste-marchand baptiste-marchand merged commit 847d745 into main Aug 1, 2025
22 checks passed
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.

4 participants