Skip to content

Commit

Permalink
docs: fix the incorrect link on the world-101 page (#1440)
Browse files Browse the repository at this point in the history
Co-authored-by: Ori Pomerantz <[email protected]>
  • Loading branch information
Mirror-Tang and qbzzt authored Sep 11, 2023
1 parent d3049a2 commit 2ba90df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/pages/world/world-101.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ In most basic cases, you don’t need to worry about namespaces and access contr

Systems are stateless pieces of logic executed on the World, represented as a resource within a namespace.
They are written in Solidity and compile to the EVM like regular smart contracts. You can think of them as SQL functions acting your SQL database (Store in this case).
Systems read and store their state on the World's Store. These storage access are abstracted via the libraries generated with `tablegen`. You can learn more about `tablegen` in the [Store doc](/store/reading-and-writing).

Systems read and store their state on the World's Store. These storage access are abstracted via the libraries generated with `tablegen`. You can learn more about `tablegen` in the [Store doc](//reading-and-writing).

**Reading and writing to the state in a system:**

Expand Down Expand Up @@ -135,7 +136,7 @@ Let’s break it down:

First, notice there is no `namespace` key: all our resources will be installed in the `ROOT` namespace, and our systems' functions will be registered as-is on the World.

Secondly, there is one singleton table named “Counter”, with a single column named `value` with type `uint32`. To learn more about the format for defining tables, head to the [Store documentation](store).
Secondly, there is one singleton table named “Counter”, with a single column named `value` with type `uint32`. To learn more about the format for defining tables, head to the [Store documentation](/store).

Lastly, this project has one system at `IncrementSystem.sol`, but it does not need to be in the config. Any file that ends in `*System.sol` is considered a system and deployed by default.

Expand Down

0 comments on commit 2ba90df

Please sign in to comment.