Debugging with require and revert

Julien Klepatch

In 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 to debug your Solidity smart contracts.


Leave a Reply

More great articles

Testing integers in smart contract with Truffle and bn.js (Big Number)

In Solidity smart contract, you might have to deal with huge numbers, especially when doing financial transfers. Don't forget that…

Read Story

Using Truffle-contract to communicate with smart contracts

In this video, I will introduce you Truffle-Contract, a library that is used by Truffle to communicate with smart contracts.…

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