Skip to content

Commit 1fa2f7d

Browse files
author
Michael Müller
authored
Migrate using canvas-node to substrate-contracts-node (#27)
Follow-up to paritytech/substrate-contracts-node#1.
1 parent 92e9922 commit 1fa2f7d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/faq/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ you compile a contract in `--release` mode.
131131
1. __Set the log level of your node to `runtime::contracts=debug`.__<br/>
132132
For example, to have only errors and debug output show up for the `canvas-node`:
133133
```
134-
canvas --dev --tmp -lerror,runtime::contracts=debug
134+
substrate-contracts-node --dev --tmp -lerror,runtime::contracts=debug
135135
```
136136

137137
__Important: Debug output is only printed for RPC calls or off-chain tests ‒ not for transactions!__

docs/getting-started/compiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ If you look closely at the constructors and messages, you will also notice a `se
5252
contains a 4-byte hash of the function name and is used to route your contract calls to the correct
5353
functions.
5454

55-
In the next section we will start a [Substrate Canvas node](https://github.com/paritytech/canvas-node)
55+
In the next section we will start a [Substrate Smart Contracts node](https://github.com/paritytech/canvas-node)
5656
and configure the [Canvas UI](https://github.com/paritytech/canvas-ui) to interact with it.

docs/getting-started/deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Deploy Your Contract
33
slug: /getting-started/deploy-your-contract
44
---
55

6-
Now that we have generated the Wasm binary from our source code and started a Canvas node, we want to deploy this contract onto our Substrate blockchain.
6+
Now that we have generated the Wasm binary from our source code and started a Substrate Smart Contracts node, we want to deploy this contract onto our blockchain.
77

88
Smart contract deployment on Substrate is a little different than on traditional smart contract blockchains.
99

docs/getting-started/running.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It's a comfortable option if you want to get a quickstart.
1111
[After successfully installing `canvas`](/getting-started/setup), you can start a local development chain by running:
1212

1313
```bash
14-
canvas --dev --tmp
14+
substrate-contracts-node --dev --tmp
1515
```
1616

1717
![An image of the terminal starting a Substrate node](./assets/start-substrate-node.png)

docs/getting-started/setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ rustup component add rust-src --toolchain nightly
4545
rustup target add wasm32-unknown-unknown --toolchain nightly
4646
```
4747

48-
## Installing The Canvas Node
48+
## Installing The Substrate Smart Contracts Node
4949

50-
The [canvas-node](https://github.com/paritytech/canvas-node#note) is a simple Substrate
50+
The [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) is a simple Substrate
5151
blockchain which is configured to include the Substrate module for smart contract
5252
functionality ‒ the `contracts` pallet (see [How it Works](/how-it-works) for more).
5353

5454
It's a comfortable option if you want to get a quickstart.
5555

5656
```bash
57-
cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.9 --force --locked
57+
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag v0.1.0 --force --locked
5858
```

docs/getting-started/troubleshooting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ There is a known issue with the Substrate block production (BABE) on a running c
1313
ClientImport("Unexpected epoch change")
1414
```
1515

16-
To solve this you will need to restart your node with: `canvas --dev --tmp`. At that point, you will
16+
To solve this you will need to restart your node with: `substrate-contracts-node --dev --tmp`. At that point, you will
1717
need to re-deploy any contracts and re-do any steps that you may have done before on your node. As
1818
long as you keep your node running, you should face no issues.
1919

2020
### Old Contracts in Local Storage
2121

2222
**Canvas UI** uses its own local storage to track the contracts that you have deployed. This means
23-
that if you deploy a contract using the UI, and then purge your Canvas node, you will be prompted to
23+
that if you deploy a contract using the UI, and then purge your Substrate node, you will be prompted to
2424
reset your local storage and please do so. And then re-deploy any contracts and re-do any steps that
2525
you may have done before on your node.
2626

0 commit comments

Comments
 (0)