Writing and running a Hash Locked Contract on Plasma
Channel: LeapDAO
Date: 18/03/2019

This video takes you through writing and running a Spending Condition (Plasma version of smart contract) on the Leap Plasma chain.

The following steps are taken:
1. The contract is compiled.
2. The placeholders are replaced.
3. The contract code is hashed.
4. Funds are locked in the Spending Condition.
5. A transaction unlocking the funds are sent.

In the first attempt the funds are unlocked successfully, in the second attempt an invalid token address is used and the unlock transaction gets rejected.

Learn more about writing Spending Conditions by visiting https://docs.leapdao.org or join our community here: https://leapdao.org