Skip to content

TypeError: Cannot read properties of null (reading 'sendTransaction') #4980

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

You must be logged in to vote

At least 4 Resolves are:

1 ) In your hardhat.config.js you should have accounts instead of account. Due to this typo, ethers cannot invoke 'sendTransaction' once the signer is null

  1. First line of your hardhat.config.js should be
    require('dotenv').config()

  2. Add 0x to PRIVATE_KEY

  3. You need to provide your private key your hardhat.config.js file instead of your public key/address.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulcoffee85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant