Skip to content

Lesson 5 - Ethers.js Simple Storage: Error: invalid address or ENS name #249

Answered by alwayscommit
Tosinkoa asked this question in Q&A
Discussion options

You must be logged in to vote

This will solve your problem.
To get the transaction count, we get it from the wallet, not provider

const nonce = await wallet.getTransactionCount();

Also, https://github.com/PatrickAlphaC/ethers-simple-storage-fcc/blob/main/deploy.js
You can refer to the two points that I mentioned here in the script written by Patrick.

Replies: 2 comments 3 replies

Comment options

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

@alwayscommit
Comment options

@PatrickAlphaC
Comment options

Answer selected by Tosinkoa
Comment options

You must be logged in to vote
0 replies
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