From 644aa8c56a97b913d5a3ca4c5aca14ea988de15a Mon Sep 17 00:00:00 2001
From: Jhih-Ming Huang <jm.huang@cobinhood.com>
Date: Tue, 12 Feb 2019 18:08:35 +0800
Subject: core: vm: sqlvm: modify Tuple.Data.Value type

Modify Tuple.Data.Value type from *big.Int to interface{}
and remove Max, Min.
---
 core/vm/sqlvm/runtime/instructions.go | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

(limited to 'core/vm/sqlvm')

diff --git a/core/vm/sqlvm/runtime/instructions.go b/core/vm/sqlvm/runtime/instructions.go
index f642a2515..7ebfd2a8b 100644
--- a/core/vm/sqlvm/runtime/instructions.go
+++ b/core/vm/sqlvm/runtime/instructions.go
@@ -2,7 +2,6 @@ package runtime
 
 import (
 	"fmt"
-	"math/big"
 	"strings"
 
 	"github.com/dexon-foundation/dexon/core/vm/sqlvm/ast"
@@ -30,16 +29,13 @@ type Raw struct {
 	MinorType ast.DataTypeMinor
 
 	// for not bytes
-	Value    *big.Int
-	Max, Min *big.Int
-	// for bytes
-	Bytes []byte
+	Value interface{}
 }
 
 func (r *Raw) String() string {
 	return fmt.Sprintf(
-		"MajorType: %v, MinorType: %v, Value: %v, Bytes: %v",
-		r.MajorType, r.MinorType, r.Value, r.Bytes)
+		"MajorType: %v, MinorType: %v, Value: %v",
+		r.MajorType, r.MinorType, r.Value)
 }
 
 // Tuple is collection of Raw.
-- 
cgit v1.2.3