diff --git a/docs/pages/guides/hello-world/add-system.mdx b/docs/pages/guides/hello-world/add-system.mdx index f6d566d59d..332290097c 100644 --- a/docs/pages/guides/hello-world/add-system.mdx +++ b/docs/pages/guides/hello-world/add-system.mdx @@ -9,6 +9,11 @@ In this tutorial you add a system to decrement the counter and update the applic [Create a new MUD application from the template](../../templates/typescript/getting-started). Use the vanilla template. +```sh copy +pnpm create mud@latest tutorial --template vanilla +cd tutorial +``` + ## Add a contract for the new system Create a file `packages/contracts/src/systems/DecrementSystem.sol`. @@ -109,13 +114,13 @@ In this case, the vanilla getting started front end. * is in the root namespace, `.increment` can be called directly * on the World contract. */ - const tx = await worldContract.write.increment(); + const tx = await worldContract.write.app__increment(); await waitForTransaction(tx); return getComponentValue(Counter, singletonEntity); }; const decrement = async () => { - const tx = await worldContract.write.decrement(); + const tx = await worldContract.write.app__decrement(); await waitForTransaction(tx); return getComponentValue(Counter, singletonEntity); };