Skip to content

Commit ee90710

Browse files
authored
refactor code (#264)
2 parents b498c45 + 40b437a commit ee90710

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/pages/cw-multi-test/getting-started.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ smart contracts using **`MultiTest`**. It provides a practical example and best
1111
a smooth start with using **`MultiTest`** for testing smart contracts. In the following chapters,
1212
you will be:
1313

14-
- designing example [**counter**](getting-started/counter.mdx) smart contract,
14+
- designing an example [**counter**](getting-started/counter.mdx) smart contract,
1515
- [**writing tests**](getting-started/writing-tests.mdx) for the counter smart contract.
1616

1717
The example **counter** smart contract and all test cases are provided in two versions: one using

src/pages/sylvia/basics/contract-structure.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ queries should never mutate the state. This is not the case for the [`ExecCtx`](
186186
and `InstantiateCtx` which exposes the
187187
[`DepsMut`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/struct.DepsMut.html).
188188

189-
Feel free expanding the macro now and seeing what Sylvia generates. It might be overwhelming, as
189+
Feel free to expanding the macro now and seeing what Sylvia generates. It might be overwhelming, as
190190
there will be a lot of things generated that seem not relevant to our code, so for the bare minimum,
191191
check the [`InstantiateMsg`](../macros/generated-types/message-types#contract-messages) and its
192192
`impl` block.

src/pages/sylvia/macros/attributes/payload.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ impl Contract {
8181
```
8282

8383
Sylvia uses the [`from_json`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/fn.from_json.html) to
84-
deserialize the `payload` field, so it has to be serialized do JSON.
84+
deserialize the `payload` field, so it has to be serialized to JSON.

src/pages/sylvia/macros/entry-points.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Callout } from "nextra/components";
66

77
# Entry_points
88

9-
Use the `entry_points` macro to generate entry points of your contract.
9+
Use the `entry_points` macro to generate entry points for your contract.
1010

1111
<Callout>
1212
Use `entry_points` macro on top of `contract` macro. The `contract` macro erases all the Sylvia attributes, which may cause

src/pages/tutorial/cw-contract/event.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ call. Additionally, there is a possibility to add attributes directly to the res
170170
sugar. By default, every execution emits a standard "wasm" event. Adding attributes to the result
171171
adds them to the default event.
172172

173-
We can check if events are properly emitted by contract. It is not always done, as it is much of
173+
We can check if events are properly emitted by the contract. It is not always done, as it is much of
174174
boilerplate in test, but events are, generally, more like logs - not necessarily considered main
175175
contract logic. Let's now write single test checking if execution emits events:
176176

0 commit comments

Comments
 (0)