From dfb7b933cc139926553ede0703203cf9d0f288ee Mon Sep 17 00:00:00 2001 From: navelbuffle Date: Sat, 4 Jan 2025 19:09:34 +0300 Subject: [PATCH] more clear offset values --- onchain/src/Push3Interpreter.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/onchain/src/Push3Interpreter.sol b/onchain/src/Push3Interpreter.sol index c632ce8..fd48714 100644 --- a/onchain/src/Push3Interpreter.sol +++ b/onchain/src/Push3Interpreter.sol @@ -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