-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INVALID operation opcode. #5
Comments
This is true of
There is a long list of things that can cause such an exception: overflowing or underflowing the stack, trying to jump to an invalid jump destination, trying to execute a state-changing opcode within a The last one means that any unassigned opcode does the same thing as the Because of this, everyone at some point (EIP-141) came to a consensus that we would designate one of these unassigned opcodes and agree to never assign it in the future. So, As a more concrete example of |
Thanks for such a great answer. Really appreciated ! |
Hi,
Great costs...
On execution of any invalid operation, whether the designated INVALID op or simply an undefined op, all remaining gas is consumed and the state is reverted to the point immediately prior to the beginning of the current execution context.
.Could you explain what you mean by this ? if the revert happens, all remaining gas is NOT consumed, but it goes back to the caller's account
The text was updated successfully, but these errors were encountered: