Skip to content

Commit

Permalink
Merge pull request #157 from satyambnsal/main
Browse files Browse the repository at this point in the history
Fix Overview -> Systems page
  • Loading branch information
gianalarcon authored Dec 18, 2023
2 parents 96c17b3 + 4c84e6d commit 4f2e3a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo/systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The spawn function is currently the only system that exists in this contract. It

### The `#[dojo::contract]` Decorator

All Starknet contracts are defined using the `#[dojo::contract]` decorator, ensuring accurate compilation. In this context, Dojo introduces the `#[dojo::contract]` decorator, which aims to minimize boilerplate in contract writing.
All Starknet contracts are defined using the `#[starknet::contract]` decorator, ensuring accurate compilation. In this context, Dojo introduces the `#[dojo::contract]` decorator, which aims to minimize boilerplate in contract writing.

The `#[dojo::contract]` decorator allows developers to omit including `world: IWorldDispatcher` as a parameter. Behind the scenes, it injects the world into the contract and eliminates some imports, thereby streamlining the development process.

Expand Down

0 comments on commit 4f2e3a4

Please sign in to comment.