From 8c882799fca1ed0387a9bbd70abd3b8ebbe37c1e Mon Sep 17 00:00:00 2001 From: Credence Date: Thu, 17 Aug 2023 13:10:15 +0100 Subject: [PATCH] use correct command output --- src/cairo/hello-dojo.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cairo/hello-dojo.md b/src/cairo/hello-dojo.md index 54a0c442..cde0fdc0 100644 --- a/src/cairo/hello-dojo.md +++ b/src/cairo/hello-dojo.md @@ -109,10 +109,14 @@ Now lets look at the next line: let position = get!(ctx.world, ctx.origin, (Position)); ``` -Here we use `get!` [command](./commands.md) to retrieve the `Position` component for the `ctx.origin` entity. `ctx.origin` is the address of the caller. It will return: +Here we use `get!` [command](./commands.md) to retrieve the `Position` component for the `ctx.origin` entity. `ctx.origin` is the address of the caller. When called for the first time, it will return: ```rust,ignore -Moves { remaining: 10 } +Position { + player: 0x0, // zero address + x: 0, + y: 0 +} ``` Now the next line: