File tree 1 file changed +7
-2
lines changed
docs/pages/guides/hello-world
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ In this tutorial you add a system to decrement the counter and update the applic
9
9
[ Create a new MUD application from the template] ( ../../templates/typescript/getting-started ) .
10
10
Use the vanilla template.
11
11
12
+ ``` sh copy
13
+ pnpm create mud@latest tutorial --template vanilla
14
+ cd tutorial
15
+ ```
16
+
12
17
## Add a contract for the new system
13
18
14
19
Create a file ` packages/contracts/src/systems/DecrementSystem.sol ` .
@@ -109,13 +114,13 @@ In this case, the vanilla getting started front end.
109
114
* is in the root namespace, `.increment` can be called directly
110
115
* on the World contract.
111
116
*/
112
- const tx = await worldContract .write .increment ();
117
+ const tx = await worldContract .write .app__increment ();
113
118
await waitForTransaction (tx );
114
119
return getComponentValue (Counter , singletonEntity );
115
120
};
116
121
117
122
const decrement = async () => {
118
- const tx = await worldContract .write .decrement ();
123
+ const tx = await worldContract .write .app__decrement ();
119
124
await waitForTransaction (tx );
120
125
return getComponentValue (Counter , singletonEntity );
121
126
};
You can’t perform that action at this time.
0 commit comments