hackdapp / exercise5-erc20-example

Exercise5: ERC20 Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise 5: Erc20 Example

This is the exercise for ERC20 with ink!.

Build

cargo +nightly contract build

Test

cargo +nightly test

The test results should be: Test results Picture

Deployment

Use Canvas UI to deply the ERC20 contract and test. Please refer to Substrate Developer Hub for more details.

Here're some of the deployment pictures with Canvas UI.

  1. Deployed Deployed

  2. Instantiated Instantiated 1 Instantiated 2

  3. Approve(Alice -> Bob) Approve 1

  4. Transfer(Alice -> Ferdie) Transfer

  5. Transfer_from(Bob: Alice -> Charlie) Transfer_from 1 Transfer_from 2

  6. The results of calls results

About

Exercise5: ERC20 Example


Languages

Language:Rust 100.0%