Skip to content

Commit

Permalink
fix(cli): fix namespaced function signatures (#2187)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Jan 24, 2024
1 parent 13785aa commit 01cc319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/deploy/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function resolveConfig<config extends ConfigInput>({
.filter((sig) => !baseSystemFunctions.includes(sig))
.map((sig): WorldFunction => {
// TODO: figure out how to not duplicate contract behavior (https://github.com/latticexyz/mud/issues/1708)
const worldSignature = namespace === "" ? sig : `${namespace}_${name}_${sig}`;
const worldSignature = namespace === "" ? sig : `${namespace}__${sig}`;
return {
signature: worldSignature,
selector: getFunctionSelector(worldSignature),
Expand Down

0 comments on commit 01cc319

Please sign in to comment.