Skip to content

Commit 5db8e1a

Browse files
Krishang NadgaudaKrishang Nadgauda
Krishang Nadgauda
authored and
Krishang Nadgauda
committed
update deploy script for dropERC1155
1 parent 8df1597 commit 5db8e1a

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

Diff for: scripts/deploy/dropERC1155.ts

+1-19
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,8 @@ import { TWFactory, DropERC1155 } from "typechain";
66

77
async function main() {
88
const [caller]: SignerWithAddress[] = await ethers.getSigners();
9-
10-
const twFactoryAddress: string = ethers.constants.AddressZero; // replace
11-
12-
const twFactory: TWFactory = await ethers.getContractAt("TWFactory", twFactoryAddress);
13-
14-
const hasFactoryRole = await twFactory.hasRole(
15-
ethers.utils.solidityKeccak256(["string"], ["FACTORY_ROLE"]),
16-
caller.address,
17-
);
18-
if (!hasFactoryRole) {
19-
throw new Error("Caller does not have FACTORY_ROLE on factory");
20-
}
9+
2110
const dropERC1155: DropERC1155 = await ethers.getContractFactory("DropERC1155").then(f => f.deploy());
22-
2311
console.log(
2412
"Deploying DropERC1155 \ntransaction: ",
2513
dropERC1155.deployTransaction.hash,
@@ -31,12 +19,6 @@ async function main() {
3119

3220
console.log("\n");
3321

34-
const addImplementationTx = await twFactory.addImplementation(dropERC1155.address);
35-
console.log("Adding DropERC1155 implementation to TWFactory: ", addImplementationTx.hash);
36-
await addImplementationTx.wait();
37-
38-
console.log("\n");
39-
4022
console.log("Verifying contract.");
4123
await verify(dropERC1155.address, []);
4224
}

0 commit comments

Comments
 (0)