From 49aa593d27d307bfc17378cdb65e94dcf3c750f1 Mon Sep 17 00:00:00 2001
From: Jhih-Ming Huang <jm.huang@cobinhood.com>
Date: Fri, 15 Mar 2019 16:02:49 +0800
Subject: core: vm: remain first byte, if it is not VM enum.

* If first byte is not VM enum, we should reserve it as checking VM type.
* Remove debug print.
---
 core/vm/vm.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'core/vm/vm.go')

diff --git a/core/vm/vm.go b/core/vm/vm.go
index 4c39d401c..99ab2ed90 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -1,7 +1,6 @@
 package vm
 
 import (
-	"fmt"
 	"math/big"
 
 	"github.com/dexon-foundation/dexon/common"
@@ -97,8 +96,7 @@ func getVMAndCode(code []byte) (byte, []byte) {
 		case EVM, SQLVM:
 			return code[0], code[1:]
 		default:
-			fmt.Printf("Unknown code prefix %x\n", code[0])
-			return EVM, code[1:]
+			return EVM, code
 		}
 	}
 	return EVM, code
-- 
cgit v1.2.3