-
I was deploying my SimpleStorage contract to a test net using hardhat networks. hardhat.config.js file const GOERLI_RPC_URL = process.env.GOERLI_RPC_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
module.exports = {
solidity: "0.8.8",
networks: {
goerli: {
url: GOERLI_RPC_URL,
accounts: [PRIVATE_KEY],
},
},
}; deploy.js file async function main() {
console.log("inside main function: deploy.js");
const SimpleStorageFactory = await ethers.getContractFactory("SimpleStorage");
console.log("Deploying Contract...");
const simpleStorage = await SimpleStorageFactory.deploy();
await simpleStorage.deployed();
console.log(`Contract deployed at address: ${simpleStorage.address}`);
} terminal output: Error
how can I solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
vaasanthk
Jun 28, 2022
Replies: 2 comments 2 replies
-
My issue was the same, I tried using different networks with Infura and Alchemy, but no luck. Currently, Moralis works. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Rishi860
-
same here :/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My issue was the same, I tried using different networks with Infura and Alchemy, but no luck. Currently, Moralis works.