@@ -43,6 +43,7 @@ const transferOrcaTokens = async (
4343const fipNumber = '82' ;
4444
4545const deploy : DeployUpgradeFunc = async ( deployAddress : string , addresses : NamedAddresses , logging : boolean ) => {
46+ const deploySigner = ( await ethers . getSigners ( ) ) [ 0 ] ;
4647 // 1. Deploy public pod executor
4748 const podExecutorFactory = await ethers . getContractFactory ( 'PodExecutor' ) ;
4849 const podExecutor = await podExecutorFactory . deploy ( addresses . core ) ;
@@ -59,6 +60,7 @@ const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses: Named
5960 podExecutor . address // Public pod executor
6061 ) ;
6162 await podFactory . deployTransaction . wait ( ) ;
63+ logging && console . log ( 'Pod factory deployed to:' , podFactory . address ) ;
6264
6365 // 3. Deploy PodAdminGateway contract
6466 const podAdminGatewayFactory = await ethers . getContractFactory ( 'PodAdminGateway' ) ;
@@ -69,8 +71,7 @@ const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses: Named
6971 ) ;
7072 await podAdminGateway . deployTransaction . wait ( ) ;
7173 logging && console . log ( `Deployed PodAdminGateway at ${ podAdminGateway . address } ` ) ;
72- await transferOrcaTokens ( addresses . orcaShipToken , deployAddress , podFactory . address , 2 ) ;
73- logging && console . log ( 'Pod factory deployed to:' , podFactory . address ) ;
74+ await transferOrcaTokens ( addresses . orcaShipToken , deployAddress , podFactory . address , 1 ) ;
7475
7576 // 4. Create TribalCouncil and Protocol Tier pods
7677 const tribalCouncilPod : PodCreationConfig = {
@@ -95,9 +96,8 @@ const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses: Named
9596 logging && console . log ( 'Tribal council Gnosis safe is: ' , councilSafeAddress ) ;
9697
9798 // 5. Create contract artifacts for timelock, so address is available to DAO script
98- const mockSigner = await getImpersonatedSigner ( deployAddress ) ;
99- const tribalCouncilTimelock = new ethers . Contract ( councilTimelockAddress , timelockABI , mockSigner ) ;
100- const tribalCouncilSafe = new ethers . Contract ( councilSafeAddress , gnosisSafeABI , mockSigner ) ;
99+ const tribalCouncilTimelock = new ethers . Contract ( councilTimelockAddress , timelockABI , deploySigner ) ;
100+ const tribalCouncilSafe = new ethers . Contract ( councilSafeAddress , gnosisSafeABI , deploySigner ) ;
101101
102102 // 6. Deploy GovernanceMetadataRegistry contract
103103 const metadataRegistryFactory = await ethers . getContractFactory ( 'GovernanceMetadataRegistry' ) ;
0 commit comments