Skip to content

Commit

Permalink
Add onchain governor addresses to timelockRolesUpgrader test (#1)
Browse files Browse the repository at this point in the history
* Add onchain governor addrs to timelockRolesUpgrader tests

* Remove addr arguments
  • Loading branch information
garyghayrat committed Aug 28, 2024
1 parent c89c349 commit ce941dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions script/DeployTimelockRolesUpgrader.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ import {TimelockRolesUpgrader} from
import {SharedGovernorConstants} from "script/SharedGovernorConstants.sol";

contract DeployTimelockRolesUpgrader is BaseDeployer, SharedGovernorConstants {
function run(address _newCoreGovernor, address _newTreasuryGovernor)
public
returns (TimelockRolesUpgrader timelockRolesUpgrader)
{
function run() public returns (TimelockRolesUpgrader timelockRolesUpgrader) {
vm.startBroadcast();
timelockRolesUpgrader = new TimelockRolesUpgrader(
L2_CORE_GOVERNOR_TIMELOCK,
L2_CORE_GOVERNOR,
_newCoreGovernor,
L2_CORE_GOVERNOR_ONCHAIN,
L2_TREASURY_GOVERNOR_TIMELOCK,
L2_TREASURY_GOVERNOR,
_newTreasuryGovernor
L2_TREASURY_GOVERNOR_ONCHAIN
);
vm.stopBroadcast();
}
Expand Down
3 changes: 1 addition & 2 deletions test/util/SetupNewGovernors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ abstract contract SetupNewGovernors is SharedGovernorConstants, Test {
// Prepare the script to submit upgrade proposal
submitUpgradeProposalScript = new SubmitUpgradeProposalScript();
DeployTimelockRolesUpgrader deployTimelockRolesUpgrader = new DeployTimelockRolesUpgrader();
timelockRolesUpgrader =
deployTimelockRolesUpgrader.run(address(newCoreGovernor), address(newTreasuryGovernor));
timelockRolesUpgrader = deployTimelockRolesUpgrader.run();
}
}

Expand Down

0 comments on commit ce941dd

Please sign in to comment.