Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ To build an ERC-20 token smart contract:
1. Verify that the program compiles and passes the trivial test by running the following command

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down Expand Up @@ -314,7 +314,7 @@ To add the transfer functions to the smart contract:
1. Verify that the program compiles and passes the test cases by running the following command:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down Expand Up @@ -439,7 +439,7 @@ To emit the Transfer event:
1. Verify that the program compiles and passes all tests by running the following command:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down Expand Up @@ -544,14 +544,14 @@ To add the approval logic to the smart contract:
```

1. Instantiate and add the `allowances` `Mapping` in the new() constructor.

```rust
#[ink(constructor)]
pub fn new(total_supply: Balance) -> Self {
// -- snip --

let allowances = Mapping::default();

Self {
total_supply,
balances,
Expand Down Expand Up @@ -677,7 +677,7 @@ To add the `transfer_from` logic to the smart contract:
1. Verify that the program compiles and passes all tests by running the following command:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ To create a new project for your smart contract:
1. Verify that the program compiles and passes the trivial test by running the following command:

```bash
cargo contract test
cargo test
```

You can ignore any warnings because this template code is simply a skeleton.
Expand Down Expand Up @@ -251,7 +251,7 @@ To update the smart contract:
1. Check your work using the `test` subcommand:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down Expand Up @@ -306,7 +306,7 @@ To add the public function to the smart contract:
1. Check your work using the `test` subcommand:

```bash
cargo contract test
cargo test
```

## Add a function to modify the storage value
Expand Down Expand Up @@ -346,7 +346,7 @@ To add a function for incrementing the stored value:
1. Check your work using the `test` subcommand:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ To test the contract:
1. Use the `test` subcommand to execute the default tests for the `flipper` contract by running the following command:

```bash
cargo contract test
cargo test
```

The command should compile the program and display output similar to the following to indicate successful test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ To add a storage map to the `incrementer` contract:
1. Use the `test` subcommand and `nightly` toolchain to test your work by running the following command:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down Expand Up @@ -286,7 +286,7 @@ To add insert and remove functions to the contract:
1. Check your work using the `test` subcommand:

```bash
cargo contract test
cargo test
```

The command should display output similar to the following to indicate successful test completion:
Expand Down