From 5c151ff986f127d752b16a4a29506e84aef9001f Mon Sep 17 00:00:00 2001 From: greged93 <82421016+greged93@users.noreply.github.com> Date: Tue, 17 Oct 2023 15:18:03 +0200 Subject: [PATCH] fix constants for opcodes (#318) --- pkg/vm/instruction.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/vm/instruction.go b/pkg/vm/instruction.go index afe90f71..12069d53 100644 --- a/pkg/vm/instruction.go +++ b/pkg/vm/instruction.go @@ -95,9 +95,9 @@ type Opcode uint const ( NOp Opcode = 0 - AssertEq Opcode = 1 - Call Opcode = 2 - Ret Opcode = 4 + Call Opcode = 1 + Ret Opcode = 2 + AssertEq Opcode = 4 ) var ErrNonZeroHighBitError = errors.New("Instruction high bit was not set to zero")