If VM Exception while processing transaction: invalid opcode
is thrown, does it have the same effect than revert?
1 Answer
Roughly. The important difference is that an invalid opcode consumes all the remaining gas, while revert
does not. (The remaining gas is returned.)