Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
📝 format
Browse files Browse the repository at this point in the history
  • Loading branch information
omarespejel committed Oct 26, 2023
1 parent ed5d298 commit e995e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/ch02-01-basic-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Essential tools to install:
manager that compiles code to Sierra, a mid-level language between
Cairo and CASM.

3. [Katana](https://github.com/dojoengine/dojo) - Katana is a Starknet node, built for local development.

3. [Katana](https://github.com/dojoengine/dojo) - Katana is a Starknet node, built for local development.

For support or queries, visit our [GitHub
Issues](https://github.com/starknet-edu/starknetbook/issues) or contact
Expand Down
7 changes: 2 additions & 5 deletions src/ch02-01-introduction-starkli-scarb-katana.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ You’ll see a list of possible compiler versions under the

Be aware: Scarb's compiler version may not match Starkli’s. To verify Scarb's version:


```bash
scarb --version
```
Expand Down Expand Up @@ -91,15 +90,13 @@ For streamlined Starkli command execution, establish environment variables. Two

In the `src/` directory, create a `.env` file with the following:


```bash
export STARKNET_ACCOUNT=katana-0
export STARKNET_RPC=http://0.0.0.0:5050
```

These settings streamline Starkli command operations.


## Declaring Smart Contracts in Starknet

Deploying a Starknet smart contract requires two primary steps:
Expand Down Expand Up @@ -172,7 +169,7 @@ Starknet. For example:
Class hash declared: 0x00bfb49ff80fd7ef5e84662d6d256d49daf75e0c5bd279b20a786f058ca21418
```

Consider this hash as the contract class's *address*.
Consider this hash as the contract class's _address_.

If you try to declare an already existing contract class, don't fret. Just proceed. You might see:

Expand All @@ -186,7 +183,7 @@ Not declaring class as its already declared. Class hash:
To deploy a smart contract on the katana local devnet, use the following command. It primarily requires:

1. Your contract's class hash.
2. Constructor arguments your contract needs (in our example, a *name* of type `felt252`).
2. Constructor arguments your contract needs (in our example, a _name_ of type `felt252`).

Here's the command structure:

Expand Down

0 comments on commit e995e5f

Please sign in to comment.