Skip to content

Commit

Permalink
docs: correct msg.sender in emojimon (#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
three9s authored Oct 12, 2024
1 parent 1b0ffcf commit e8b1dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/3-players-and-movement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The `spawn` function spawns a new player entity on the map.
```

In certain cases systems are called by [a MUD `World`](/world) using the call opcode.
In that case, `msg.sender()` is the `World` that called the system, not the actual player.
In that case, `msg.sender` is the `World` that called the system, not the actual player.
`_msgSender()` takes care of this and gives us the real user identity, the one who called the `World`.

```solidity
Expand Down

0 comments on commit e8b1dbb

Please sign in to comment.