@@ -68,20 +68,20 @@ export default async function deploy() {
6868 const erc1538UpdateAddress = await factoryDeployer . deployContract (
6969 new ERC1538UpdateDelegate__factory ( ) ,
7070 ) ;
71- // const transferOwnershipCall = await Ownable__factory.connect(
72- // ZeroAddress, // any is fine
73- // owner, // any is fine
74- // )
75- // .transferOwnership.populateTransaction(owner.address)
76- // .then((tx) => tx.data)
77- // .catch(() => {
78- // throw new Error('Failed to prepare transferOwnership data');
79- // });
80- // const erc1538ProxyAddress = await factoryDeployer.deployContract(
81- // new ERC1538Proxy__factory(),
82- // [erc1538UpdateAddress],
83- // transferOwnershipCall,
84- // );
71+ const transferOwnershipCall = await Ownable__factory . connect (
72+ ZeroAddress , // any is fine
73+ owner , // any is fine
74+ )
75+ . transferOwnership . populateTransaction ( owner . address )
76+ . then ( ( tx ) => tx . data )
77+ . catch ( ( ) => {
78+ throw new Error ( 'Failed to prepare transferOwnership data' ) ;
79+ } ) ;
80+ const erc1538ProxyAddress = await factoryDeployer . deployContract (
81+ new ERC1538Proxy__factory ( ) ,
82+ [ erc1538UpdateAddress ] ,
83+ transferOwnershipCall ,
84+ ) ;
8585 // const erc1538: ERC1538Update = ERC1538Update__factory.connect(erc1538ProxyAddress, owner);
8686 // console.log(`IexecInstance found at address: ${await erc1538.getAddress()}`);
8787 // // Deploy library & modules
0 commit comments