Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.81 KB

File metadata and controls

53 lines (29 loc) · 1.81 KB

🧑‍💻 [INTERMEDIATE CHALLENGE] Smart contracts - write an ERC-20 smart contract with ink!

Repos

My Substrate node with contracts pallet repo

Intro

ERC-20 contract is from this ink example

Followed this example to build an erc20 with ink

Guide

Build erc20 Contract by navigating to erc20 and the instructions on building your contract

  1. Run the node first.
  2. Go to polkadot app.
  3. "Upload WASM" with erc20.wasm and put in metadata.json as "contract ABI".
  4. Deploy Contract.
  5. Execute calls on the contract.

Guide with Screenshots

1: Run the Node

Run this node that has the contracts pallet implemented.

Running node

2: Go to polkadot app

Polkadot js

3: Upload WASM

Click on "Upload WASM" and upload erc20.wasm and put in metadata.json as "contract ABI".

Upload wasm

4: Deploy Contract

Deploy contract picture 1

Deploy contract picture 2

5: Execute Calls on the Contract

Balance call on the contract picture 1

Transfer call on the contract

Balance call on the contract picture 2