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

Angular 12 Web3ModalService Instantiation providerOptions/disableInjectedProvider #2

Open
johnstoia opened this issue Aug 20, 2021 · 2 comments

Comments

@johnstoia
Copy link

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

@timlehane
Copy link

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

@ciri
Copy link

ciri commented Nov 27, 2021

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
  }
};

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

No branches or pull requests

3 participants