Skip to content

Commit

Permalink
feat(templates/threejs): use a namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt committed May 14, 2024
1 parent b91a8e5 commit d6ab6d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function createSystemCalls(
* Because MoveSystem is in the root namespace, .move can be called directly
* on the World contract.
*/
const tx = await worldContract.write.move([x, y, z]);
const tx = await worldContract.write.virtual_world__move([x, y, z]);
await waitForTransaction(tx);
};

Expand Down
1 change: 1 addition & 0 deletions templates/threejs/packages/contracts/mud.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineWorld } from "@latticexyz/world";

export default defineWorld({
namespace: "virtual_world",
tables: {
Position: {
schema: {
Expand Down

0 comments on commit d6ab6d8

Please sign in to comment.