Skip to content
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

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

holic
Copy link
Member

@holic holic commented Feb 28, 2024

part of #2158

@holic holic marked this pull request as ready for review February 28, 2024 11:22
Copy link

changeset-bot bot commented Feb 28, 2024

🦋 Changeset detected

Latest commit: 8544b52

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@latticexyz/store Major
@latticexyz/world-modules Major
@latticexyz/cli Major
@latticexyz/dev-tools Major
@latticexyz/react Major
@latticexyz/store-indexer Major
@latticexyz/store-sync Major
@latticexyz/world Major
@latticexyz/abi-ts Major
@latticexyz/block-logs-stream Major
@latticexyz/common Major
@latticexyz/config Major
create-mud Major
@latticexyz/ecs-browser Major
@latticexyz/faucet Major
@latticexyz/gas-report Major
@latticexyz/network Major
@latticexyz/noise Major
@latticexyz/phaserx Major
@latticexyz/protocol-parser Major
@latticexyz/recs Major
@latticexyz/schema-type Major
@latticexyz/services Major
@latticexyz/solecs Major
solhint-config-mud Major
solhint-plugin-mud Major
@latticexyz/std-client Major
@latticexyz/std-contracts Major
@latticexyz/store-cache Major
@latticexyz/utils Major

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

yonadaa
yonadaa previously approved these changes Feb 28, 2024
@@ -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();
Copy link
Member Author

@holic holic Feb 28, 2024

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

Copy link
Contributor

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

@holic holic changed the title refactor: clean up error names/locations refactor(store,world-modules): clean up error names/locations Feb 28, 2024
@holic holic merged commit 970aa10 into main Feb 28, 2024
10 of 11 checks passed
@holic holic deleted the holic/error-names-cleanup branch February 28, 2024 12:32
holic added a commit that referenced this pull request Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants