In 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 StoryIn Solidity, require and revert statements are used to check some pre-conditions before executing the main part of a function. However, these Solidity constructs can also be used to debug your smart contracts. In this video, I am going to show you how you can use require and revert statements…
Read StoryIn Solidity, you can return some values from functions, like in other programming languages. Its also possible to use these return statements to inspect some variables and do some debugging. In this video, I am going to show you how to do this.
Read StoryWhen I started learning Solidity, there was nothing more frustrating than running accross "VM Exception: invalid opcode" or "VM Exception: revert" errors. These errors messages are really not helpful. In this video, I explain you: what are these errors what kind of Solidity code trigger them how to troubleshoot them
Read Story"Out of gas".. what a lovely Solidity error! This really use to make me mad when I started with Solidity smart contracts! In this video, I am going to show you how to simply solve this error and more importantly how you can find out how much gas is needed…
Read Story