Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
horsefacts committed Aug 14, 2023
1 parent b81f427 commit 64a5e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 6 additions & 3 deletions 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";

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions 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 {
/*//////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 64a5e92

Please sign in to comment.