Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including
Stack Overflow
, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this community
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
I am using an example from the WalletConnect documentation:
public async connectWalletConnect() {
// Create WalletConnect Provider
const provider = new WalletConnectProvider({
infuraId: '5234234fdsfewr34234324fdfs',
// Enable session (triggers QR Code modal)
await provider.enable();
this.web3 = new Web3(provider);
But I got this error inside new Web3(provider)
Argument of type 'WalletConnectProvider' is not assignable to parameter of type 'provider'.
Type 'WalletConnectProvider' is not assignable to type 'string'.
Help, please)
Thanks for contributing an answer to Ethereum Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.