Skip to content

JsonRpcProvider: missing new : Lesson 5 Ethers.js #5047

Answered by paulcoffee85
baroonjha asked this question in Q&A
Discussion options

You must be logged in to vote

try with placing 'new' in after '=' sign.

const provider = ethers.providers.JsonRpcProvider("http://127.0.0.1:8545");
like this:
const provider = new ethers.providers.JsonRpcProvider("http://127.0.0.1:8545");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baroonjha
Comment options

Answer selected by baroonjha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants