New course for testing Solidity smart contracts

Julien Klepatch

After you deploy a web application, you can always change its code if you need to add a feature or fix a bug. All you need to do is to redeploy the code on the server. With Ethereum smart contracts, this is not possible. Once you deploy a smart contract, its code is immutable. Nobody can’t modify it. If someone discover a critical bug, you can do nothing but observe helplessly the terrible scene of hackers pillaging your smart contract.

This is why you need to make sure that your smart contract has no bugs before you deploy it. There are different ways to do this, including running security analysis tools like Mythril. But these tools still can’t catch logic bugs. The only way to prevent these is to create extensive tests that cover all use cases. Unfortunately, there aren’t many tutorials on smart contract testing.

I created a course where we test 30 Solidity smart contracts, using the Truffle framework and web3.

After you finish all these tests, you will become a pro of smart contract testing. You will be not only very comfortable with the different testing techniques but also with testing tools. With so many different scenarios encountered, you will have accumulated a breadth of experience that normally take 6 month to 1 year to acquire.

Tests are written in Javascript (NodeJS), and we use the Truffle framework to run them. The smart contracts we test range from simple contracts such as basic storage to advanced such as DAO, Ebay, etc… You can find the full list here on the course page.

These contracts are the same as in the course smart contract 30 – Solidity. However, it’s not required to have followed this course before. I will explain you how these contracts work in the testing course as well.

Each test is explained step-by-step in a high quality video tutorial. You can watch the first few videos for free. The source code of all the smart contracts and tests is available in the course.

You can get access to the material of the course by buying the course individually or taking a subscription to EatTheBlocks, where you also get access to all the other videos.

If you have any questions, feel free to email me at julien [at] eattheblocks [dot] com


Leave a Reply

More great articles

Solidity explained in 2 mins

Solidity is a language for creating Blockchain smart contracts.

You can use it to create smart contracts, on more than 200…

Read Story

What is Ethereum Gas? Dead simple explanation

When you develop decentralized applications, you quickly stumbled upon this weird concept of "gas". That's very confusing for a lot…

Read Story

“Learn Ethereum Dapps” ebook updated: Refactor Dapp with React

I have just updated the ebook Learn Ethereum Dapps with 3 new chapters (step10, 11, and 12). In these chapters…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.
[contact-form-7 id="6" title="Footer CTA Subscribe Form"]