TypeError: Cannot read properties of null (reading 'sendTransaction') #4980
Answered
by
paulcoffee85
paulcoffee85
asked this question in
Q&A
-
Came across this problem after finding immediate fix, but thought others could benefit. So posting anway.
|
Beta Was this translation helpful? Give feedback.
Answered by
paulcoffee85
Mar 1, 2023
Replies: 1 comment
-
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
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
paulcoffee85
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
First line of your hardhat.config.js should be
require('dotenv').config()
Add
0x
to PRIVATE_KEYYou need to provide your private key your hardhat.config.js file instead of your public key/address.