Posts

Smart contract by ink!

What does it do?

An example project to show how to write an ink! smart contract and deploy it to a substrate node.

How to compile

Run cargo contract build --release

How to deploy

  1. Run the blockchain node
./target/release/node-template --dev --tmp
  1. Open the Contracts UI and verify that it is connected to the local node.

  2. Click Add New Contract.

  3. Click Upload New Contract Code.

  4. Select the posts.contract file, then click Next.

  5. Click Upload and Instantiate.

  6. Explore and interact with the smart contract using the Contracts UI.