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: revert” errors. These errors messages are really not helpful.

In this video, I explain you:

  • what are these errors
  • what kind of Solidity code trigger them
  • how to troubleshoot them

Leave a Reply

Your email address will not be published. Required fields are marked *