youtube image
From YouTube: Smart India Hackathon - Workshop #2 pt. 1 - Build a Fundraiser Contract

Description

In part 1 of the second workshop as part of the Smart India Hackathon, Rust developer Karan Dhareshwar presents a tutorial on how to build out a fundraiser contract that accepts donations and records the accounts that donated. He also gives an overview of writing and executing smart contract tests before deployment.


0:00 Introduction
0:50 Agenda
2:22 Overview of Fundraising Contract
3:20 Contents of a Contract Project Directory
7:19 Writing the Donation Entrypoint
12:10 Handling Errors
16:05 Writing Init Entrypoint
19:22 Count Donations by Account
26:47 URef Source Definition
29:42 Writing the Call Function
37:18 Contract Recap
37:39 Testing Example
39:14 Casper Documentation Overview
40:45 Debugging Failed Tests
51:20 Conclusion

Missed the first workshop? Find it here: https://youtu.be/9UvsgpXQVpk