web3modal-angular icon indicating copy to clipboard operation
web3modal-angular copied to clipboard

Angular 12 Web3ModalService Instantiation providerOptions/disableInjectedProvider

Open johnstoia opened this issue 4 years ago • 2 comments

Hi guys,

Thanks for this package, I've been looking for one everywhere.

When trying to instantiate the service the way laid out in your readme I get this error

image

I tried adding in the disableInjectedProvider field with 'false' but it seems providerOptions still needs some sort of value to be instantiated.

image

Is this an angular12 issue? How do I fix this?

Apologies if this question is easy, it's my first time working with Web3Modal

Thanks

johnstoia avatar Aug 20 '21 17:08 johnstoia

I'm also having this issue - any fix @johnstoia ?

timlehane avatar Oct 12 '21 07:10 timlehane

You need to specify it, just like in https://github.com/Web3Modal/web3modal.

E.g. put this somewhere after your imports in the module file:

const providerOptions = {
  injected: {
    display: {
      name: "Browser Wallet",
      description: "Connect with your browser wallet."
    },
    package: null
  }
};

ciri avatar Nov 27 '21 02:11 ciri