Issue with setting up Web3 client with Matic #300
-
I have just begun working with matic.js and am having difficulty setting up the Web3ClientPlugin. I am getting a type error when trying to use the use function:
My code:
My package.json:
Have spent a couple hours trying to figure this out, even tried using different versions of matic.js. Getting the same issue with ethers as well. Assuming it's something simple I'm missing but I've stripped my code down to the most basic implementation of matic.js and still can't find the issue. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
your code is -
change it to -
take a look at our example code - https://github.com/maticnetwork/matic.js/blob/master/examples/utils.js |
Beta Was this translation helpful? Give feedback.
-
Such a simple fix. Appreciate the help! |
Beta Was this translation helpful? Give feedback.
your code is -
change it to -
take a look at our example code - https://github.com/maticnetwork/matic.js/blob/master/examples/utils.js