fbpx

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

0 Comments

Leave a Reply

More great articles

Top Visual Studio Plugins for Web3 and Blockchain Development in 2022

Although web3 development tools are still pretty new as compared web2 there are some pretty nifty VS code plugins that…

Read Story

How to transfer Ether between 2 smart contracts?

https://youtu.be/_Nvl-gz-tRs Sending Ether between smart contracts is very important. After all, it's because smart contracts can do financial transactions that…

Read Story

10 Factor Dapps: Best Design Practices for Ethereum Dapps

https://youtu.be/jUmHCIAaYVs Have you ever heard of the 12-factor app? That's a document created more than 20 years ago that describes…

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"]
Arrow-up