Skip to content

Commit ebb8b25

Browse files
authored
Fixed chapter 12 (#17)
1 parent 64ca7db commit ebb8b25

File tree

8 files changed

+446
-421
lines changed

8 files changed

+446
-421
lines changed

docs/tutorial/platform/02-concepts-overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Here is what these actions would look like on the command line:
7777
<Tabs>
7878
<TabItem value="Store bytecode" default>
7979
Sending a transaction to store a bytecode on-chain looks like this:
80-
```sh title="Command line"
80+
```shell title="Command line"
8181
wasmd tx wasm store path/to/compiled_smart_contract.wasm --from ...
8282
```
8383

@@ -99,7 +99,7 @@ Here is what these actions would look like on the command line:
9999
</TabItem>
100100
<TabItem value="Instantiate smart contract">
101101
Sending a transaction to instantiate a smart contract looks like this:
102-
```sh title="Command line"
102+
```shell title="Command line"
103103
wasmd tx wasm instantiate 8 '{"constructor_field1":...}' --from ...
104104
```
105105
Where **8** is the bytecode id that your instance will use.
@@ -627,7 +627,7 @@ that give access to the on-chain storage in read-only or read/write, depending o
627627
i.e. [query](https://github.com/b9lab/cw-my-nameservice/blob/first-query-message/src/contract.rs#L48)
628628
or [execution](https://github.com/b9lab/cw-my-nameservice/blob/first-query-message/src/contract.rs#L24) respectively.
629629

630-
<Tabs sync>
630+
<Tabs groupId="local-docker">
631631
<TabItem value="Query">
632632
```rust
633633
pub fn query(deps: Deps, ...) ...

docs/tutorial/platform/08-first-contract-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ In this section, each of your integration test will:
4848
You start by adding MultiTest as a development dependency to your project:
4949

5050
<Tabs groupId="local-docker">
51-
<TabItem value="Local" active>
51+
<TabItem value="Local" default>
5252
```shell
5353
cargo add --dev cw-multi-test@2.1.1
5454
```
@@ -191,7 +191,7 @@ for (key, _) in store_dump {
191191
Then, in order to get the logs while testing, you add the `-- --nocapture` flag like so:
192192

193193
<Tabs groupId="local-docker">
194-
<TabItem value="Local" active>
194+
<TabItem value="Local" default>
195195
```shell
196196
cargo test -- --nocapture
197197
```
@@ -220,7 +220,7 @@ The numerical values make it clear that the first two characters are `0` and [`1
220220
To confirm that it works, you run the same way you did for unit tests:
221221

222222
<Tabs groupId="local-docker">
223-
<TabItem value="Local" active>
223+
<TabItem value="Local" default>
224224
```shell
225225
cargo test
226226
```

docs/tutorial/platform/11-use-large-library.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Let's refactor in order to use it. You are going to:
3737
## Add the dependency
3838

3939
<Tabs groupId="local-docker">
40-
<TabItem value="Local" active>
40+
<TabItem value="Local" default>
4141
```shell
4242
cargo add cw721 --git https://github.com/public-awesome/cw-nfts --tag "v0.19.0"
4343
```
@@ -869,7 +869,7 @@ println!("{:?}", mock_app.storage());
869869
Then, in order to get the logs while testing, you add the `-- --nocapture` flag like so:
870870

871871
<Tabs groupId="local-docker">
872-
<TabItem value="Local" active>
872+
<TabItem value="Local" default>
873873
```shell
874874
cargo test -- --nocapture
875875
```

0 commit comments

Comments
 (0)