Replies: 2 comments 1 reply
-
What line does the error log point to (where the error originates from)? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like process.env.RINKEBY_RPC_URL and process.env.PRIVATE_KEY values are undefined. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried deploying to the rinkeby network with Yarn hardhat run scripts/deploy.js --network rinkeby, i got this error below
To learn more about Hardhat's configuration, please go to https://hardhat.org/config/
My hardhat.config.js
require("@nomiclabs/hardhat-waffle");
require("dotenv").config()
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
const RINKEBY_RPC_URL=process.env.RINKEBY_RPC_URL
const PRIVATE_KEY=process.env.PRIVATE_KEY
module.exports = {
defaultNetwork:"hardhat",
networks:{
},
solidity: "0.8.8",
};
Beta Was this translation helpful? Give feedback.
All reactions