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
- Run the blockchain node
./target/release/node-template --dev --tmp
-
Open the Contracts UI and verify that it is connected to the local node.
-
Click Add New Contract.
-
Click Upload New Contract Code.
-
Select the
posts.contract
file, then click Next. -
Click Upload and Instantiate.
-
Explore and interact with the smart contract using the Contracts UI.