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

fix(cli): function selector lookup #2800

Merged
merged 3 commits into from
May 8, 2024
Merged

Conversation

alvrs
Copy link
Member

@alvrs alvrs commented May 8, 2024

No description provided.

Copy link

changeset-bot bot commented May 8, 2024

🦋 Changeset detected

Latest commit: 4c7bd39

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

This PR includes changesets to release 24 packages
Name Type
@latticexyz/cli Patch
mock-game-contracts Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/dev-tools Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/protocol-parser Patch
@latticexyz/query Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
@latticexyz/services Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/store-indexer Patch
@latticexyz/store-sync Patch
@latticexyz/store Patch
@latticexyz/utils Patch
@latticexyz/world-modules Patch
@latticexyz/world 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

@alvrs alvrs marked this pull request as ready for review May 8, 2024 12:33
@alvrs alvrs requested review from holic and yonadaa as code owners May 8, 2024 12:33
selector: worldFunctionSelector,
signature: selectorToSignature[worldFunctionSelector],
systemFunctionSelector,
systemFunctionSignature: selectorToSignature[systemFunctionSelector],
Copy link
Member

@holic holic May 8, 2024

Choose a reason for hiding this comment

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

do we wanna do any sort of throwing or skipping if this doesn't exist? might be easier to track these kinds of issues in the future vs. the stacktrace we were getting in user reports

Copy link
Member Author

Choose a reason for hiding this comment

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

This should always exist since the function signature table includes both world and system signatures. We could throw but it would be more like a "if this throws there is a bug in the protocol".

Copy link
Member

@holic holic May 8, 2024

Choose a reason for hiding this comment

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

seems reasonable to throw when we suspect a protocol issue than letting this failed with some obscure undefined error, but not blocking

Copy link
Member Author

Choose a reason for hiding this comment

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

discussed offline, since the deployer is tied to a protocol version it's fine to assume the protocol behaves as expected here

holic
holic previously approved these changes May 8, 2024
@alvrs alvrs merged commit 0ae9189 into main May 8, 2024
12 checks passed
@alvrs alvrs deleted the alvrs/register-namespaced-functions branch May 8, 2024 12:56
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