mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-01-11 12:24:13 +00:00
Make INVALID result in program STOP
This commit is contained in:
parent
3873dc98b5
commit
0bc99d2e78
@ -351,8 +351,7 @@ public enum OpCode {
|
||||
|
||||
public static OpCode code(byte code) {
|
||||
OpCode op = intToTypeMap.get(code);
|
||||
if (op == null)
|
||||
throw new RuntimeException("Illegal operation: " + code);
|
||||
if (op == null) op = STOP; // invalid operation
|
||||
return op;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user