EatTheBlocks Forum

NFT101 TypeError: Cannot read property 'sendTransaction' of null

Hi can anyone please give some hints ?
I get this error when try to deploy

npx hardhat run --network mumbai scripts/deploy.js
TypeError: Cannot read property ‘sendTransaction’ of null

Thanks in advance

resolved
there is an error in hardhat.config.js

instead of
account: [ process.env.PRIVATE_KEY ]
type
accounts: [ process.env.PRIVATE_KEY ]

1 Like