Skip to content

ReferenceError: wallet is not defined #1942

Answered by krakxn
Amey242 asked this question in Q&A
Discussion options

You must be logged in to vote

Problem lies here:

let provider = new ethers.providers.JsonRpcProvider(process.env.RPC_URL)
let wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider)

Make sure whether the above, .env, PRIVATE_KEY and provider are correct.

Replies: 2 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@Amey242
Comment options

@krakxn
Comment options

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