Mikio Oba

Solidity Error Handling with assert(), require(), revert() – A Guide for Python Coders

In Solidity, you can use the require, revert, and assert functions to check error conditions and handle exceptions, but they look similar at first glance, and you might get confused about how to use them. This article will explain their differences, specifically to Python developers. We use a simple smart contract below, taken from the …

Solidity Error Handling with assert(), require(), revert() – A Guide for Python Coders Read More »