web3-onboard icon indicating copy to clipboard operation
web3-onboard copied to clipboard

How can I add a custom module that has same provider name with another provider?

Open huy23121994 opened this issue 2 years ago • 2 comments

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?

huy23121994 avatar Sep 05 '22 09:09 huy23121994

Hey @huy23121994 👋🏾 Which injected wallet are you trying to add that has the same provider name?

taylorjdawson avatar Sep 12 '22 19:09 taylorjdawson

@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.

lnbc1QWFyb24 avatar Sep 13 '22 01:09 lnbc1QWFyb24

Closing this issue for now, feel free to reopen if you are still having trouble creating a custom module.

lnbc1QWFyb24 avatar Sep 25 '22 23:09 lnbc1QWFyb24