TypeError: provider.send is not a function
Opened this issue · 4 comments
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
I wish to fix this issue. @ujjwalgupta94 @ujjwalguptaofficial Can we contribute to this project?
yeah sure @shivamklr , please do.
@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.
can you point out to some documentation, when do we need FallbackProvider @shivamklr ?