Skip to content

Commit

Permalink
feat: env vvariable for governor / guardian
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed May 3, 2024
1 parent b1f2467 commit 8f6dd98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/DeployChain.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ contract DeployChain is Script, CommonUtils {
function run() external {
uint256 chainId = vm.envUint("CHAIN_ID");

address governor = _chainToContract(chainId, ContractType.GovernorMultisig);
address guardian = _chainToContract(chainId, ContractType.GuardianMultisig);
/** TODO complete */
address governor = vm.envOr("GOVERNOR", _chainToContract(chainId, ContractType.GovernorMultisig));
address guardian = vm.envOr("GUARDIAN", _chainToContract(chainId, ContractType.GuardianMultisig));
/** END complete */

uint256 deployerPrivateKey = vm.deriveKey(vm.envString("MNEMONIC_MAINNET"), "m/44'/60'/0'/0/", 0);
vm.startBroadcast(deployerPrivateKey);
Expand Down

0 comments on commit 8f6dd98

Please sign in to comment.