From bb138bb79400ce7a5029f6adace9d190e718f102 Mon Sep 17 00:00:00 2001 From: echo Date: Tue, 22 Oct 2024 17:24:34 +0800 Subject: [PATCH] fmt --- src/PREPLK.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PREPLK.sol b/src/PREPLK.sol index e0c15d1..1b67481 100644 --- a/src/PREPLK.sol +++ b/src/PREPLK.sol @@ -17,6 +17,9 @@ contract PreParaLink is Ownable2StepUpgradeable, UUPSUpgradeable { + // This function must be overridden to include access restriction to the upgrade mechanism. + function _authorizeUpgrade(address newImplementation) internal override onlyOwner {} + /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); @@ -53,8 +56,6 @@ contract PreParaLink is return "mode=timestamp"; } - function _authorizeUpgrade(address newImplementation) internal override onlyOwner {} - // The following functions are overrides required by Solidity. function _update(address from, address to, uint256 value)