Skip to content

Commit

Permalink
fix: guardian and governor are in right scope in createChain script (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder authored Aug 30, 2024
1 parent 035d1ee commit d5822cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/DeployChain.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ contract DeployChain is Script, CommonUtils {
timelock = _chainToContract(chainId, ContractType.Timelock);
}
if (vm.envExists("GOVERNOR")) {
address governor = vm.envAddress("GOVERNOR");
governor = vm.envAddress("GOVERNOR");
} else {
address governor = _chainToContract(chainId, ContractType.GovernorMultisig);
governor = _chainToContract(chainId, ContractType.GovernorMultisig);
}
if (vm.envExists("GUARDIAN")) {
address guardian = vm.envAddress("GUARDIAN");
guardian = vm.envAddress("GUARDIAN");
} else {
address guardian = _chainToContract(chainId, ContractType.GuardianMultisig);
guardian = _chainToContract(chainId, ContractType.GuardianMultisig);
}
/** END complete */

Expand Down

0 comments on commit d5822cc

Please sign in to comment.