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): rename ambiguous elements [N-03] #2091

Merged
merged 5 commits into from Jan 12, 2024

Conversation

yonadaaa
Copy link
Contributor

@yonadaaa yonadaaa commented Jan 8, 2024

No description provided.

Copy link

changeset-bot bot commented Jan 8, 2024

🦋 Changeset detected

Latest commit: c37c553

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 Patch
@latticexyz/world Patch
@latticexyz/cli Patch
@latticexyz/dev-tools Patch
@latticexyz/react Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/world-modules Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/ecs-browser Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/network Patch
@latticexyz/noise Patch
@latticexyz/phaserx Patch
@latticexyz/protocol-parser Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
@latticexyz/services Patch
@latticexyz/solecs Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/std-client Patch
@latticexyz/std-contracts Patch
@latticexyz/store-cache Patch
@latticexyz/utils Patch

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

@@ -30,15 +30,15 @@ library HookLib {
* @notice Filter a hook from the hook list by its address.
* @dev This function writes the updated hook list to the table in place.
* @param hookTableId The resource ID of the hook table.
* @param tableWithHooks The resource ID of the table with hooks to filter.
* @param elementWithHooks The resource ID of the table with hooks to filter.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we name this resourceWithHooks?

"element" is a term we've never used before and I think "resource" is more consistent: https://www.notion.so/latticexyz/MUD-naming-conventions-terminology-66e11356a1934465b2aa1a951c61a299

@@ -52,7 +52,7 @@ contract World is StoreData, IWorldKernel {
/**
* @dev Prevents the World contract from calling itself.
*/
modifier requireNoCallback() {
Copy link
Member

@holic holic Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not blocking but I feel like we could expand the docs here to explain why this modifier is here and important to be used, esp since this relates to a now-fixed vulnerability

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added issue here: #2106

holic
holic previously approved these changes Jan 10, 2024
@holic
Copy link
Member

holic commented Jan 11, 2024

should prob add a changeset for this one since the modifier name changed

@holic holic merged commit e6c03a8 into main Jan 12, 2024
11 checks passed
@holic holic deleted the yonadaaa/naming-suggestions branch January 12, 2024 16:30
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.

None yet

2 participants