Skip to content

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Aug 7, 2024
1 parent 93cdff3 commit ede0a1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/deploy-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,18 +524,18 @@ async function main() {

if (sleepAmount > 0) await sleep(sleepAmount)
if (logging) console.info("Deploying ERC20 Sapphire Template");
const ERC20TemplateSapphire = await ethers.getContractFactory(
const ERC20TemplateSapphire = await ethers.getContractFactory(
"ERC20TemplateSapphire",
owner
);
let templateERC20Sapphire
if (options) templateERC20Sapphire = await ERC20TemplateSapphire.connect(owner).deploy(options);
else templateERC20Sapphire = await ERC20TemplateSapphire.connect(owner).deploy();
await templateERC20Sapphire.deployTransaction.wait();
if (show_verify) {
let templateERC20TemplateSapphire
if (options) templateERC20Sapphire = await ERC20TemplateSapphire.connect(owner).deploy(options);
else templateERC20TemplateSapphire = await ERC20TemplateSapphire.connect(owner).deploy();
await templateERC20TemplateSapphire.deployTransaction.wait();
if (show_verify) {
console.log("\tRun the following to verify on etherscan");
console.log("\tnpx hardhat verify --network " + networkName + " " + templateERC20Sapphire.address)
}
console.log("\tnpx hardhat verify --network " + networkName + " " + templateERC20TemplateSapphire.address)
}

addresses.ERC721Template = {};
if (sleepAmount > 0) await sleep(sleepAmount)
Expand Down

0 comments on commit ede0a1e

Please sign in to comment.