Skip to content

Commit

Permalink
update/guest-book.md (#1789)
Browse files Browse the repository at this point in the history
Co-authored-by: gagdiez <gagdiez.c@gmail.com>
  • Loading branch information
flmel and gagdiez authored Mar 12, 2024
1 parent 79ef9a1 commit 339995c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/3.tutorials/examples/guest-book.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ The example is divided in two main components:
<TabItem value="πŸ¦€ Rust">

```bash
β”Œβ”€β”€ sandbox-ts # sandbox testing
β”‚ β”œβ”€β”€ src
β”‚ β”‚ └── main.ava.ts
β”‚ β”œβ”€β”€ ava.config.cjs
β”‚ └── package.json
β”Œβ”€β”€ tests # workspaces testing
β”‚ β”œβ”€β”€ workspaces.rs
β”œβ”€β”€ src # contract's code
β”‚ └── lib.rs
β”œβ”€β”€ build.sh # build script
Expand Down Expand Up @@ -131,7 +128,7 @@ The contract presents 3 methods: `add_message`, `get_message` and `total_message
<Language value="πŸ¦€ Rust" language="rust">
<Github fname="lib.rs"
url="https://github.com/near-examples/guest-book-examples/blob/main/contract-rs/src/lib.rs"
start="29" end="53" />
start="37" end="70" />
</Language>

</CodeTabs>
Expand All @@ -156,7 +153,7 @@ yarn test

```bash
cd contract-rs
./test.sh
cargo test
```

</TabItem>
Expand Down Expand Up @@ -195,7 +192,7 @@ near create-account <accountId> --useFaucet
# Deploy the contract
cd contract-rs
./build.sh
cargo near build
near deploy <accountId> ./target/wasm32-unknown-unknown/release/guestbook.wasm
```

Expand Down

0 comments on commit 339995c

Please sign in to comment.