Skip to content

Commit 81a2362

Browse files
committed
Sylvia tutorial contract creation review fixes
1 parent 58d2aaf commit 81a2362

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/pages/tutorial/setup-environment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ All contracts (1) passed checks!
9494

9595
## Macro expansion
9696

97-
In VSCode you can hower over a macro like [`#[contract]`](../sylvia/macros/contract), do `shift+p`
97+
In VSCode you can hover over a macro like [`#[contract]`](../sylvia/macros/contract), do `shift+p`
9898
and then type: `rust analyzer: Expand macro recursively`. This will open a window with a fully
9999
expanded macro, which you can browse. In Vim you can consider installing the
100100
[rustaceanvim](https://github.com/mrcjkb/rustaceanvim) plugin. You can also use `cargo expand` tool
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Sylvia contract writting tutorial
1+
# Sylvia contract writing tutorial
22

33
This section is a step-by-step guide on how to write a Sylvia contract.

src/pages/tutorial/sylvia-contract/contract-creation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ assembly binary. The downside of this is that such a library cannot be used as a
5454
other Rust crates - for now, it is not needed, but later we will show how to approach reusing
5555
contracts as dependencies.
5656

57-
Additionally, we added some core dependencies for smart contracts:
57+
Additionally, we added a single dependency - [sylvia](https://docs.rs/sylvia/latest/sylvia/). This
58+
is the only dependency you need to start since [sylvia](https://docs.rs/sylvia/latest/sylvia/)
59+
reexports all the necessary crates for CosmWasm smart contracts. The most important reexported
60+
crates are:
5861

5962
- [cosmwasm-std](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/) - Crate that is a standard
6063
library for smart contracts. It provides essential utilities for communication with the outside
6164
world, helper functions, and types. Every smart contract we will build will use this dependency.
62-
- [sylvia](https://docs.rs/sylvia/latest/sylvia/) - Crate, we will learn in this book. It provides
63-
us with three procedural macros: `entry_points`, `contract` and `interface`. I will expand on them
64-
later in the book.
6565
- [schemars](https://docs.rs/schemars/latest/schemars/index.html) - Crate used to create JSON schema
6666
documents for our contracts. It is automatically derived on types generated by ^sylvia and will be
6767
later used to provide concise API for blockchain users, who might not be Rust developers.

0 commit comments

Comments
 (0)