-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(store,world-modules): clean up error names/locations #2334
Conversation
🦋 Changeset detectedLatest commit: 8544b52 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -17,3 +17,6 @@ error Store_InvalidValueSchemaLength(uint256 expected, uint256 received); | |||
error Store_InvalidValueSchemaStaticLength(uint256 expected, uint256 received); | |||
error Store_InvalidValueSchemaDynamicLength(uint256 expected, uint256 received); | |||
error Store_InvalidSplice(uint40 startWithinField, uint40 deleteCount, uint40 fieldLength); | |||
|
|||
/// @notice Error emitted when a function is not implemented. | |||
error StoreHook_NotImplemented(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kinda undecided on this being here
also considered making this a generic error NotImplemented()
(so we can reuse the pattern in other contracts) but wasn't sure if that would be clear enough when the error is thrown somewhere in code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the specific error name, but would not be against it being defined at the top of StoreHook
part of #2158