Skip to content

Commit

Permalink
Fix Regression introduced in PR#79 (storyprotocol#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will authored Feb 7, 2024
1 parent 536f33b commit 8088e4e
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion contracts/IPAccountImpl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { MessageHashUtils } from "@openzeppelin/contracts/utils/cryptography/Mes

import { IAccessController } from "./interfaces/IAccessController.sol";
import { IIPAccount } from "./interfaces/IIPAccount.sol";
import { AccessPermission } from "./lib/AccessPermission.sol";
import { MetaTx } from "./lib/MetaTx.sol";
import { Errors } from "./lib/Errors.sol";

Expand Down
1 change: 0 additions & 1 deletion contracts/lib/Licensing.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.20;
import { Errors } from "./Errors.sol";

/// @title Licensing
/// @notice Types and constants used by the licensing related contracts
Expand Down
2 changes: 0 additions & 2 deletions contracts/modules/BaseModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ pragma solidity ^0.8.23;
import { IModule } from "../interfaces/modules/base/IModule.sol";
import { IAccessController } from "../interfaces/IAccessController.sol";
import { IPAssetRegistry } from "../registries/IPAssetRegistry.sol";
import { IPAccountRegistry } from "../registries/IPAccountRegistry.sol";
import { LicenseRegistry } from "../registries/LicenseRegistry.sol";
import { IResolver } from "../interfaces/resolvers/IResolver.sol";
import { Errors } from "../lib/Errors.sol";

/// @title BaseModule
Expand Down
1 change: 0 additions & 1 deletion contracts/modules/RegistrationModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Errors } from "../lib/Errors.sol";
import { IP } from "../lib/IP.sol";
import { BaseModule } from "../modules/BaseModule.sol";
import { ILicensingModule } from "../interfaces/modules/licensing/ILicensingModule.sol";
import { ILicenseRegistry } from "../interfaces/registries/ILicenseRegistry.sol";

/// @title Registration Module
/// @notice The registration module is responsible for registration of IP into
Expand Down
2 changes: 0 additions & 2 deletions contracts/registries/IPAssetRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
// See https://github.com/storyprotocol/protocol-contracts/blob/main/StoryProtocol-AlphaTestingAgreement-17942166.3.pdf
pragma solidity ^0.8.23;

import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { ERC165Checker } from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";

import { IIPAccount } from "../interfaces/IIPAccount.sol";
import { IMetadataProvider } from "../interfaces/registries/metadata/IMetadataProvider.sol";
import { IIPAssetRegistry } from "../interfaces/registries/IIPAssetRegistry.sol";
import { IPAccountRegistry } from "../registries/IPAccountRegistry.sol";
import { IMetadataProviderMigratable } from "../interfaces/registries/metadata/IMetadataProviderMigratable.sol";
Expand Down
6 changes: 3 additions & 3 deletions contracts/registries/metadata/MetadataProviderV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ contract MetadataProviderV1 is MetadataProviderBase {
if (decodedMetadata.hash == "") {
revert Errors.MetadataProvider__HashInvalid();
}
// if (decodedMetadata.registrationDate != uint64(block.timestamp)) {
// revert Errors.MetadataProvider__RegistrationDateInvalid();
// }
if (decodedMetadata.registrationDate != uint64(block.timestamp)) {
revert Errors.MetadataProvider__RegistrationDateInvalid();
}
if (decodedMetadata.registrant == address(0)) {
revert Errors.MetadataProvider__RegistrantInvalid();
}
Expand Down
5 changes: 0 additions & 5 deletions contracts/resolvers/IPResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@
// See https://github.com/storyprotocol/protocol-contracts/blob/main/StoryProtocol-AlphaTestingAgreement-17942166.3.pdf
pragma solidity ^0.8.23;

import { IResolver } from "../interfaces/resolvers/IResolver.sol";
import { ResolverBase } from "./ResolverBase.sol";
import { BaseModule } from "../modules/BaseModule.sol";
import { IModule } from "../interfaces/modules/base/IModule.sol";
import { IKeyValueResolver } from "../interfaces/resolvers/IKeyValueResolver.sol";
import { IIPAccount } from "../interfaces/IIPAccount.sol";
import { KeyValueResolver } from "../resolvers/KeyValueResolver.sol";
import { Errors } from "../lib/Errors.sol";
import { IP } from "../lib/IP.sol";
import { IP_RESOLVER_MODULE_KEY } from "../lib/modules/Module.sol";

/// @title IP Resolver
Expand Down

0 comments on commit 8088e4e

Please sign in to comment.