Skip to content

Commit

Permalink
add error and module name
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will committed Mar 22, 2024
1 parent e4ee0f9 commit 7ba3923
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions contracts/lib/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,9 @@ library Errors {
error AccessControlled__ZeroAddress();
error AccessControlled__NotIpAccount(address ipAccount);
error AccessControlled__CallerIsNotIpAccount(address caller);

////////////////////////////////////////////////////////////////////////////
// CoreMetadataModule //
////////////////////////////////////////////////////////////////////////////
error CoreMetadataModule__MetadataAlreadySet();
}
4 changes: 4 additions & 0 deletions contracts/lib/modules/Module.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ string constant DISPUTE_MODULE_KEY = "DISPUTE_MODULE";
string constant ROYALTY_MODULE_KEY = "ROYALTY_MODULE";

string constant TOKEN_WITHDRAWAL_MODULE_KEY = "TOKEN_MANAGEMENT_MODULE";

string constant CORE_METADATA_MODULE_KEY = "CORE_METADATA_MODULE";

string constant CORE_METADATA_VIEW_MODULE_KEY = "CORE_METADATA_VIEW_MODULE";
1 change: 0 additions & 1 deletion test/foundry/utils/DeployHelper.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import { MockERC20 } from "../mocks/token/MockERC20.sol";
import { MockERC721 } from "../mocks/token/MockERC721.sol";
import { TestProxyHelper } from "./TestProxyHelper.sol";


contract DeployHelper {
// TODO: three options, auto/mock/real in deploy condition, so that we don't need to manually
// call getXXX to get mock contract (if there's no real contract deployed).
Expand Down

0 comments on commit 7ba3923

Please sign in to comment.