Debugging with require and revert

jklepatch

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.

More great articles

Debugging “VM Exception: invalid opcode / revert”

When I started learning Solidity, there was nothing more frustrating than running accross "VM Exception: invalid opcode" or "VM Exception:…

Read Story

DAO – Part III

In this video, we are going to allow investors to cash out on their investment, in 2 ways: By redeeming…

Read Story

Lottery in Solidity

This video is a tutorial to build a lottery smart contract in Solidity. The rules are simples. In each round…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.

    Only great content, we don’t share your email with third parties.
    Arrow-up