-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1b83f1
commit a5531a5
Showing
3 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import hre from "hardhat"; | ||
import addresses from "./constant/addresses"; | ||
import instaDeployContract from "./deployContract"; | ||
|
||
async function main() { | ||
const INSTA_INDEX = addresses.InstaIndex[hre.network.name]; | ||
const instaAccountV2DefaultImpl = await instaDeployContract( | ||
"InstaDefaultImplementation", | ||
[INSTA_INDEX] | ||
); | ||
|
||
if (hre.network.name !== "hardhat") { | ||
await hre.run("verify:verify", { | ||
address: instaAccountV2DefaultImpl.address, | ||
constructorArguments: [INSTA_INDEX], | ||
}); | ||
} else { | ||
console.log(`Contracts deployed to ${hre.network.name}`); | ||
} | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |