Skip to content

Provider: missing new #3178

Answered by 0xpolarzero
smrkarkii asked this question in Q&A
Oct 9, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Well check the beginning:

const provider = ethers.providers.JsonRpcProvider("http://127.0.0.1:7545/");

You need to create a new instance, as the error code tells you, at main, in deploy.js: line 6.

So you can change it to:

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alymurtazamemon
Comment options

@krakxn
Comment options

@smrkarkii
Comment options

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