Assert (Ethereum)

In Solidity, +assert(false)+ compiles to 0xfe, an invalid opcode, which uses up all remaining gas and reverts all changes. When an +assert()+ statement fails, something very wrong and unexpected is […]

Search across the site