Skip to content

Commit

Permalink
fix error message (storyprotocol#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will authored Sep 9, 2024
1 parent edf35f1 commit 3dc3a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/GroupNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ contract GroupNFT is IGroupNFT, ERC721Upgradeable, AccessManagedUpgradeable, UUP

modifier onlyGroupingModule() {
if (msg.sender != address(GROUPING_MODULE)) {
revert Errors.GroupNFT__CallerNotIPAssetRegistry(msg.sender);
revert Errors.GroupNFT__CallerNotGroupingModule(msg.sender);
}
_;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ library Errors {
////////////////////////////////////////////////////////////////////////////

/// @notice Caller is not the IPA Asset Registry.
error GroupNFT__CallerNotIPAssetRegistry(address caller);
error GroupNFT__CallerNotGroupingModule(address caller);

/// @notice Zero address provided for Access Manager.
error GroupNFT__ZeroAccessManager();
Expand Down

0 comments on commit 3dc3a93

Please sign in to comment.