web3-onboard
web3-onboard copied to clipboard
How can I add a custom module that has same provider name with another provider?
I want to add a custom injected module but this module has the same provider name as Metamask.
Metamask injects an obj named 'ethereum' and the custom injected module too. So how can I integrate both?
Hey @huy23121994 👋🏾 Which injected wallet are you trying to add that has the same provider name?
@huy23121994 you can check out how we handle duplicate provider identity flags here.
Here is an example of what a custom injected wallet looks like.
Let us know if that helps you create your custom injected module. You could also create a PR in to this repo to get it added to the released code.
Closing this issue for now, feel free to reopen if you are still having trouble creating a custom module.