more clear offset values

This commit is contained in:
2025-01-04 19:09:34 +03:00
parent 2e214f95d3
commit dfb7b933cc
+3 -3
View File
@@ -14,9 +14,9 @@ contract Push3Interpreter {
// -----------------------------------------------------
// 0. CONSTANTS
// -----------------------------------------------------
uint8 internal constant OPCODE_INTEGER_OFFSET = 0x05;
uint8 internal constant OPCODE_BOOL_OFFSET = 0x0a;
uint8 internal constant OPCODE_LAST = OPCODE_BOOL_OFFSET + 0x10;
uint8 internal constant OPCODE_INTEGER_OFFSET = uint8(OpCode.INTEGER_PLUS);
uint8 internal constant OPCODE_BOOL_OFFSET = uint8(OpCode.BOOL_DUP);
uint8 internal constant OPCODE_LAST = int8(OpCode.BOOL_RAND);
// -----------------------------------------------------
// 1. ENUMS