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

TypeError: provider.send is not a function #6

Open
shivamklr opened this issue Aug 17, 2022 · 4 comments
Open

TypeError: provider.send is not a function #6

shivamklr opened this issue Aug 17, 2022 · 4 comments

Comments

@shivamklr
Copy link

I get an error for withdrawExit method. I would really appreciate if you could look into the code once and point me in the right direction.
TypeError: provider.send is not a function at EtherWeb3Client.module.exports../src/ethers/web3_client.ts.EtherWeb3Client.getBlockWithTransaction (/home/..../node_modules/@maticnetwork/maticjs-ethers/dist/webpack:/matic-ethers/src/ethers/web3_client.ts:38:25) at /home/..../node_modules/@maticnetwork/maticjs/dist/webpack:/Matic/src/pos/exit_util.ts:202:35 at processTicksAndRejections (node:internal/process/task_queues:96:5)

Link to Code
npm i to install
npm run start:dev to start the server

@shivamklr
Copy link
Author

I wish to fix this issue. @ujjwalgupta94 @ujjwalguptaofficial Can we contribute to this project?

@ujjwalgupta94
Copy link
Contributor

yeah sure @shivamklr , please do.

@shivamklr
Copy link
Author

shivamklr commented Aug 18, 2022

@ujjwalgupta94 I see that the project does not support FallbackProvider by ethers. Any plans to add support for that?
I figured out the issue, I created an ethers Wallet instance with the Fallback provider. However, on further investigation, I saw that the EtherWeb3Client only support JsonRPCProvider.

@ujjwalgupta94
Copy link
Contributor

can you point out to some documentation, when do we need FallbackProvider @shivamklr ?

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

2 participants