Skip to content

Commit

Permalink
🔨 change script
Browse files Browse the repository at this point in the history
  • Loading branch information
thurendous committed Oct 4, 2023
1 parent f4321be commit eae4105
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script/DeployContracts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,13 @@ contract DeployContracts is Script {
// console.log("address this: %s", address(this));
// console.log("address deployerKey: %s", deployerKey);
// console.log("address factoryAdmin: %s", factoryAdmin);
proxyFactory.transferOwnership(factoryAdmin);

// do this when it is in local test
// TODO: now the prod cases only include testnet and mainnet of avalanche
if (block.chainid != 43114 || block.chainid != 43113) {
// console.log("Deploying contracts...sender: ", msg.sender);
proxyFactory.transferOwnership(factoryAdmin);
}
// console.log("After transferring, proxyFactory Owner: %s", proxyFactory.owner());

// deploy distributor - implementation contract
Expand Down

0 comments on commit eae4105

Please sign in to comment.