Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Sep 27, 2024
1 parent 89c53a4 commit 95a6d9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions l1-contracts/contracts/governance/TransitionaryOwner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import {Ownable2Step} from "@openzeppelin/contracts-v4/access/Ownable2Step.sol";
contract TransitionaryOwner {
address public immutable GOVERNANCE_ADDRESS;

constructor(address _goveranceAddress) {
GOVERNANCE_ADDRESS = _goveranceAddress;
constructor(address _governanceAddress) {
GOVERNANCE_ADDRESS = _governanceAddress;
}

/// @notice Claims that ownership of a contract and transfers it to the governance
function claimOwnershipAndGiveToGoverance(address target) external {
function claimOwnershipAndGiveToGovernanceeee(address target) external {
Ownable2Step(target).acceptOwnership();
Ownable2Step(target).transferOwnership(GOVERNANCE_ADDRESS);
}
Expand Down
4 changes: 2 additions & 2 deletions l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1062,14 +1062,14 @@ contract EcosystemUpgrade is Script {

function _moveGovernanceToOwner(address target) internal {
Ownable2StepUpgradeable(target).transferOwnership(addresses.transitionaryOwner);
TransitionaryOwner(addresses.transitionaryOwner).claimOwnershipAndGiveToGoverance(target);
TransitionaryOwner(addresses.transitionaryOwner).claimOwnershipAndGiveToGovernance(target);
}

function updateOwners() internal {
vm.startBroadcast(msg.sender);

// Note, that it will take some time for the governance to sign the "acceptOwnership" transaction,
// in order to avoid any possibilty of the front-run, we will temporarily give the ownership to the
// in order to avoid any possibility of the front-run, we will temporarily give the ownership to the
// contract that can only transfer ownership to the governance.
_moveGovernanceToOwner(addresses.validatorTimelock);
_moveGovernanceToOwner(addresses.bridges.sharedBridgeProxy);
Expand Down
6 changes: 3 additions & 3 deletions system-contracts/contracts/L2GatewayUpgrade.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {UpgradeableBeacon} from "@openzeppelin/contracts-v4/proxy/beacon/Upgrade
/// @notice The contract that is used for facilitating the upgrade of the L2
/// to the protocol version that supports gateway
/// @dev This contract is neither predeployed nor a system contract. It is located
/// in this folder due to very overlaping functionality with `L2GenesisUpgrade` and
/// faciliating reusage of the code.
/// @dev During the ugprade, it will be delegate-called by the `ComplexUpgrader` contract.
/// in this folder due to very overlapping functionality with `L2GenesisUpgrade` and
/// facilitating reusage of the code.
/// @dev During the upgrade, it will be delegate-called by the `ComplexUpgrader` contract.
contract L2GatewayUpgrade {
function upgrade(
ForceDeployment[] calldata _forceDeployments,
Expand Down

0 comments on commit 95a6d9a

Please sign in to comment.