From 95a6d9ade7c43cadff583308da53a00773dadbdb Mon Sep 17 00:00:00 2001 From: Stanislav Breadless Date: Fri, 27 Sep 2024 12:03:17 +0200 Subject: [PATCH] fix typos --- l1-contracts/contracts/governance/TransitionaryOwner.sol | 6 +++--- l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol | 4 ++-- system-contracts/contracts/L2GatewayUpgrade.sol | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/l1-contracts/contracts/governance/TransitionaryOwner.sol b/l1-contracts/contracts/governance/TransitionaryOwner.sol index 6b71ddd3c..02e1936c1 100644 --- a/l1-contracts/contracts/governance/TransitionaryOwner.sol +++ b/l1-contracts/contracts/governance/TransitionaryOwner.sol @@ -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); } diff --git a/l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol b/l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol index 9f563de0f..fda0108bc 100644 --- a/l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol +++ b/l1-contracts/deploy-scripts/upgrade/EcosystemUpgrade.s.sol @@ -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); diff --git a/system-contracts/contracts/L2GatewayUpgrade.sol b/system-contracts/contracts/L2GatewayUpgrade.sol index 8f18da3b8..59d96102d 100644 --- a/system-contracts/contracts/L2GatewayUpgrade.sol +++ b/system-contracts/contracts/L2GatewayUpgrade.sol @@ -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,