Skip to content

Commit c877f1e

Browse files
Apply formatter updates
1 parent 4882142 commit c877f1e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

website/docs/tutorial/01-getting-started.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ pub const ADMIN_KEY: &Symbol = &symbol_short!("ADMIN");
231231

232232
Now the most important part of our contract: the number! This line creates a key for storing and retrieving contract data. A `Symbol` is a short string type (max 32 characters) that is more optimized for use on the blockchain. And we're using the `symbol_short` macro for an even smaller key (max 9 characters). As a contract author, you want to use tricks like this to lower costs as much as you can.
233233

234-
The second line creates a key for storing the address of this contract's administrator.
234+
The second line creates a key for storing the address of this contract's administrator.
235235

236236
Both of these keys use the `&` which is called a [reference](https://doc.rust-lang.org/book/ch04-02-references-and-borrowing.html). Instead of the value, it's a pointer to where the value lives.
237237

@@ -325,14 +325,14 @@ export const GuessTheNumber = () => {
325325
We're storing some state for tracking the input's value and whether the guess was successful or not. And we're also using our custom `useWallet` hook to connect to the user's wallet and get their address. This is how we know whether or not you connected to Freighter.
326326
327327
```ts
328-
const submitGuess = async () => {
329-
if (!theGuess || !address) return;
330-
const { result } = await game.guess({
331-
a_number: BigInt(theGuess),
332-
guesser: address,
333-
});
334-
setGuessedIt(result);
335-
};
328+
const submitGuess = async () => {
329+
if (!theGuess || !address) return;
330+
const { result } = await game.guess({
331+
a_number: BigInt(theGuess),
332+
guesser: address,
333+
});
334+
setGuessedIt(result);
335+
};
336336
```
337337
338338
Next, we create a function to handle the user's submission. Hey! Look at that! It's one of our contract's methods right in our TypeScript code: `game.guess()`. Let's follow that import and look at `src/contracts/guess_the_number.ts`.

0 commit comments

Comments
 (0)