diff --git a/src/KeyRegistry.sol b/src/KeyRegistry.sol index 6f2f8ad2..30e31746 100644 --- a/src/KeyRegistry.sol +++ b/src/KeyRegistry.sol @@ -1,7 +1,6 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.21; -import {ECDSA} from "openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import {EIP712} from "openzeppelin/contracts/utils/cryptography/EIP712.sol"; import {Nonces} from "openzeppelin-latest/contracts/utils/Nonces.sol"; @@ -373,7 +372,9 @@ contract KeyRegistry is TrustedCaller, Signatures, EIP712, Nonces { bytes[][] calldata fidKeys, bytes calldata metadata ) external onlyOwner { - if (isMigrated() && block.timestamp > keysMigratedAt + gracePeriod) revert Unauthorized(); + if (isMigrated() && block.timestamp > keysMigratedAt + gracePeriod) { + revert Unauthorized(); + } if (fids.length != fidKeys.length) revert InvalidBatchInput(); // Safety: i and j can be incremented unchecked since they are bound by fids.length and @@ -399,7 +400,9 @@ contract KeyRegistry is TrustedCaller, Signatures, EIP712, Nonces { * @param fidKeys A list of keys to remove for each fid, in the same order as the fids array. */ function bulkResetKeysForMigration(uint256[] calldata fids, bytes[][] calldata fidKeys) external onlyOwner { - if (isMigrated() && block.timestamp > keysMigratedAt + gracePeriod) revert Unauthorized(); + if (isMigrated() && block.timestamp > keysMigratedAt + gracePeriod) { + revert Unauthorized(); + } if (fids.length != fidKeys.length) revert InvalidBatchInput(); // Safety: i and j can be incremented unchecked since they are bound by fids.length and diff --git a/src/lib/TrustedCaller.sol b/src/lib/TrustedCaller.sol index 2e4fa939..794edaf7 100644 --- a/src/lib/TrustedCaller.sol +++ b/src/lib/TrustedCaller.sol @@ -1,11 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.21; -import {ECDSA} from "openzeppelin/contracts/utils/cryptography/ECDSA.sol"; -import {EIP712} from "openzeppelin/contracts/utils/cryptography/EIP712.sol"; -import {Nonces} from "openzeppelin-latest/contracts/utils/Nonces.sol"; import {Ownable2Step} from "openzeppelin/contracts/access/Ownable2Step.sol"; -import {Pausable} from "openzeppelin/contracts/security/Pausable.sol"; abstract contract TrustedCaller is Ownable2Step { /*//////////////////////////////////////////////////////////////