File tree 1 file changed +1
-19
lines changed
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";
6
6
7
7
async function main ( ) {
8
8
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
+
21
10
const dropERC1155 : DropERC1155 = await ethers . getContractFactory ( "DropERC1155" ) . then ( f => f . deploy ( ) ) ;
22
-
23
11
console . log (
24
12
"Deploying DropERC1155 \ntransaction: " ,
25
13
dropERC1155 . deployTransaction . hash ,
@@ -31,12 +19,6 @@ async function main() {
31
19
32
20
console . log ( "\n" ) ;
33
21
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
-
40
22
console . log ( "Verifying contract." ) ;
41
23
await verify ( dropERC1155 . address , [ ] ) ;
42
24
}
You can’t perform that action at this time.
0 commit comments