Skip to content

Commit f55703a

Browse files
committed
verified and deployed contract
1 parent 32de49f commit f55703a

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

packages/hardhat/deploy/01_deploy_contract.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
2929

3030
// Getting a previously deployed contract
3131
const scaffoldGods = await ethers.getContract("ScaffoldGods", deployer);
32+
await scaffoldGods.transferOwnership(
33+
"0xf4030DdD79fc7Fd49b25C976C5021D07568B4F91"
34+
);
3235
/*
3336
34-
await scaffoldGods.transferOwnership(
35-
"ADDRESS_HERE"
36-
);
3737
3838
//const ScaffoldGods = await ethers.getContractAt('ScaffoldGods', "0xaAC799eC2d00C013f1F11c37E654e59B0429DF6A") //<-- if you want to instantiate a version of a contract at a specific address!
3939
*/
@@ -66,16 +66,16 @@ module.exports = async ({ getNamedAccounts, deployments, getChainId }) => {
6666

6767
// You can also Verify your contracts with Etherscan here...
6868
// You don't want to verify on localhost
69-
// try {
70-
// if (chainId !== localChainId) {
71-
// await run("verify:verify", {
72-
// address: ScaffoldGods.address,
73-
// contract: "contracts/ScaffoldGods.sol:ScaffoldGods",
74-
// constructorArguments: [],
75-
// });
76-
// }
77-
// } catch (error) {
78-
// console.error(error);
79-
// }
69+
try {
70+
if (chainId !== localChainId) {
71+
await run("verify:verify", {
72+
address: scaffoldGods.address,
73+
contract: "contracts/ScaffoldGods.sol:ScaffoldGods",
74+
constructorArguments: [_metadataUri],
75+
});
76+
}
77+
} catch (error) {
78+
console.error(error);
79+
}
8080
};
8181
module.exports.tags = ["ScaffoldGods"];

packages/hardhat/hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const { isAddress, getAddress, formatUnits, parseUnits } = utils;
2626
//
2727
// Select the network you want to deploy to here:
2828
//
29-
const defaultNetwork = "localhost";
29+
const defaultNetwork = "goerli";
3030

3131
const mainnetGwei = 21;
3232

packages/hardhat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"send": "hardhat send",
4242
"generate": "hardhat generate",
4343
"account": "hardhat account",
44-
"verify": "hardhat etherscan-verify --api-key PSW8C433Q667DVEX5BCRMGNAH9FSGFZ7Q8"
44+
"verify": "hardhat etherscan-verify --api-key KWT8X4HB4SHKGAJIGIENW1BMR1WXGAFZVY"
4545
}
4646
}

0 commit comments

Comments
 (0)