diff --git a/docs/2.develop/contracts/anatomy.md b/docs/2.develop/contracts/anatomy.md index 9c340ead659..cfd20e68f28 100644 --- a/docs/2.develop/contracts/anatomy.md +++ b/docs/2.develop/contracts/anatomy.md @@ -28,7 +28,7 @@ internal classes simply decorate it using the [`NEAR Bindgen` decorator/macro](# + start="13" end="16" /> @@ -99,7 +99,7 @@ In JavaScript you **must always** define a [default state](#default-state) + start="35" end="40" /> :::info To make the initialization mandatory use `#[derive(PanicOnDefault)]` in the contract's structure @@ -134,7 +134,7 @@ In Javascript you **must always** assign values to **all the class' parameters** + start="19" end="26" /> diff --git a/docs/2.develop/contracts/crosscontract.md b/docs/2.develop/contracts/crosscontract.md index 1ab2f56f6d2..331d3c0c726 100644 --- a/docs/2.develop/contracts/crosscontract.md +++ b/docs/2.develop/contracts/crosscontract.md @@ -51,7 +51,7 @@ Calling another contract passing information is also a common scenario. Bellow y + start="52" end="75" /> @@ -124,7 +124,7 @@ The callback methods in your contract must be public, so it can be called when t + start="67" end="74" /> @@ -140,7 +140,7 @@ In case the call finishes successfully, the resulting object will have a `status + start="47" end="49" /> diff --git a/docs/2.develop/testing/integration.md b/docs/2.develop/testing/integration.md index 3a01ff18386..403f4af1d73 100644 --- a/docs/2.develop/testing/integration.md +++ b/docs/2.develop/testing/integration.md @@ -32,7 +32,7 @@ Lets take a look at the test of our [Quickstart Project](../quickstart.md) [👋 + url="https://github.com/near-examples/hello-near-examples/blob/main/contract-ts/sandbox-ts/main.ava.ts" start="8" end="43"/> @@ -45,7 +45,7 @@ In most cases we will want to test complex methods involving multiple users and diff --git a/docs/2.develop/testing/unit.md b/docs/2.develop/testing/unit.md index 02d7dd72113..d405e6a4e7a 100644 --- a/docs/2.develop/testing/unit.md +++ b/docs/2.develop/testing/unit.md @@ -23,7 +23,7 @@ The tests in the [Counter Example](https://github.com/near-examples/counters) re + start="50" end="71" /> @@ -37,7 +37,7 @@ While doing unit testing you can modify the [Environment variables](../contracts + start="59" end="117" /> diff --git a/docs/3.tutorials/examples/coin-flip.md b/docs/3.tutorials/examples/coin-flip.md index 11aea90d91a..0857bb1bc8f 100644 --- a/docs/3.tutorials/examples/coin-flip.md +++ b/docs/3.tutorials/examples/coin-flip.md @@ -60,7 +60,7 @@ The contract presents 2 methods: `flip_coin`, and `points_of`. + start="49" end="81" /> diff --git a/docs/3.tutorials/examples/count-near.md b/docs/3.tutorials/examples/count-near.md index 19a13fc04c2..e7ef0df4d86 100644 --- a/docs/3.tutorials/examples/count-near.md +++ b/docs/3.tutorials/examples/count-near.md @@ -125,7 +125,7 @@ The contract presents 4 methods: `get_num`, `increment`, `decrement`, and `reset + start="5" end="39" /> diff --git a/docs/3.tutorials/examples/donation.md b/docs/3.tutorials/examples/donation.md index 27edf7203e1..c93f0a5a5ba 100644 --- a/docs/3.tutorials/examples/donation.md +++ b/docs/3.tutorials/examples/donation.md @@ -65,7 +65,7 @@ The example is divided in two main components: │ └── lib.rs ├── Cargo.toml # package manager ├── README.md -├── rust-toolchain.toml +└── rust-toolchain.toml ``` diff --git a/docs/3.tutorials/examples/guest-book.md b/docs/3.tutorials/examples/guest-book.md index d12408eff3e..a95f2e5c91c 100644 --- a/docs/3.tutorials/examples/guest-book.md +++ b/docs/3.tutorials/examples/guest-book.md @@ -65,7 +65,7 @@ The example is divided in two main components: │ └── lib.rs ├── Cargo.toml # package manager ├── README.md -├── rust-toolchain.toml +└── rust-toolchain.toml ``` @@ -99,13 +99,12 @@ Go ahead and login with your NEAR account. If you don't have one, you will be ab The frontend is composed by a single HTML file (`/index.html`) and uses REACT. Check `/App.js` and `/index.js` to understand how components are displayed in the screen. -You will notice in `/index.js` the following code: +You will notice in `/src/App.jsx` the following code: - + diff --git a/docs/3.tutorials/examples/xcc.md b/docs/3.tutorials/examples/xcc.md index 0e3dc3421af..7e37b8dd082 100644 --- a/docs/3.tutorials/examples/xcc.md +++ b/docs/3.tutorials/examples/xcc.md @@ -53,7 +53,6 @@ The smart contract is available in two flavors: Rust and JavaScript -======= ```bash ┌── tests # sandbox testing │ ├── hello-near @@ -88,7 +87,7 @@ The contract exposes methods to query the greeting and change it. These methods + start="25" end="50" /> @@ -130,13 +129,13 @@ in `sandbox-ts/` for the JavaScript version and in `tests/` for the Rust version + url="https://github.com/near-examples/cross-contract-calls/blob/main/contract-simple-ts/sandbox-ts/main.ava.ts" + start="8" end="52" /> + start="4" end="77" />