Before you rush into testing your Solidity smart contracts, it's important to understand the difference between unit tests and integration tests. In this video I am going to explain you the difference between these 2 kind of tests in the context of smart contract. After you watch this video, you…
Read StoryDo you write tests for your Solidity smart contracts? Congrats if you do, and if don't it's time to start! If you do, do you write your Solidity smart contract first, and only after your tests? There is a better way :) It's called Test-driven-development (TDD), and it consist in…
Read StoryWe will finally finish our DAO smart contract! So far we can vote for investment proposals, but after the voting time is over we need to actually execute the investment proposal, by sending some ether to the recipient address of the proposal. We will also use for the first time…
Read StoryIn this video, we are going to allow investors of the DAO to: create investment proposals vote on each investment proposal We will manipulate Solidity mappings a lot, including nested mappings. We will also use a storage pointer, to be able to manipulate a struct instance more easily. Any investors…
Read StoryIn this video, we are going to allow investors to cash out on their investment, in 2 ways: By redeeming their shares against Ether from the smart contract By selling their shares to other investors (outside the smart contract). In this case, the DAO smart contract will only be concerned…
Read StoryIn this video, we start to build the DAO smart contract, and implement the following features: Collect investor money in Ether Keep track of investor money in shares
Read StoryIn this new series of videos, we are going to build a DAO (Decentralized Autonomous Organization) smart contract. The DAO was a revolutionary kind of investment fund implemented as an Ethereum smart contract, where investment decisions where voted by investors. Investment decisions and executions were done in the code, without…
Read StoryIn this video I will show you some advanced features of the Remix Debugger like: stepping over functions breakpoints These features allow you to quickly find the place of the Solidity code that you want to debug. It can be very useful in large smart contracts.
Read Storyhe Remix debugger is a powerful that allows you to debug your Solidity code. Usually, if you are stuck and don't know how to fix a buggy Solidity smart contract, the Remix debugger is your last chance. In this video, I will introduce you how to use the Remix debugger:…
Read StoryDo you like often use console.log() statement to debug your Javascript code? Convenient, uh? How about Solidity smart contracts, can we do the same? Well, yes and no. In this video, I will show you how you can do almost the same thing in Solidity with events. After you watch…
Read Story