File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -6,20 +6,8 @@ import { TWFactory, DropERC1155 } from "typechain";
66
77async 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}
You can’t perform that action at this time.
0 commit comments