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

feat(world): strip world prefix from function names when encoding system calls #3527

Merged
merged 3 commits into from
Jan 29, 2025

Conversation

frolic
Copy link
Member

@frolic frolic commented Jan 29, 2025

fixes #2463

Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: 5e1a0ef

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

This PR includes changesets to release 30 packages
Name Type
@latticexyz/world Patch
@latticexyz/cli Patch
@latticexyz/dev-tools Patch
@latticexyz/entrykit Patch
@latticexyz/explorer Patch
@latticexyz/store-consumer Patch
@latticexyz/store-sync Patch
@latticexyz/world-module-callwithsignature Patch
@latticexyz/world-module-erc20 Patch
@latticexyz/world-module-metadata Patch
@latticexyz/world-modules Patch
@latticexyz/store-indexer Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/paymaster Patch
@latticexyz/protocol-parser Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/stash Patch
@latticexyz/store Patch
@latticexyz/utils Patch
vite-plugin-mud 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

@frolic frolic marked this pull request as ready for review January 29, 2025 12:00
@frolic frolic requested a review from alvrs as a code owner January 29, 2025 12:00
/**
* System function name to call
*/
readonly functionName: functionName;
Copy link
Member Author

Choose a reason for hiding this comment

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

pulled these out for stronger types in the function body and so we can add TSDoc to clarify the abi param

import { Hex } from "viem";

/** @internal */
export function internal_normalizeSystemFunctionName(systemId: Hex, functionName: string) {
Copy link
Member Author

@frolic frolic Jan 29, 2025

Choose a reason for hiding this comment

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

I don't wanna propagate the usage of this so I prefixed this with internal_ to make it clear we shouldn't export this

@frolic frolic merged commit 7c3df69 into main Jan 29, 2025
16 checks passed
@frolic frolic deleted the holic/encode-system-call-world-abi branch January 29, 2025 12:55
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.

Function Selector not Rerouted in Namespaced Systems
2 participants