From 77648c442fc13211c3b65229e420471290fcd935 Mon Sep 17 00:00:00 2001
From: JM <jm@dexon.org>
Date: Fri, 15 Feb 2019 16:43:33 +0800
Subject: core: vm: sqlvm: export instruction's member (#197)

---
 core/vm/sqlvm/runtime/instructions.go | 6 +++---
 core/vm/sqlvm/runtime/runtime.go      | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

(limited to 'core/vm')

diff --git a/core/vm/sqlvm/runtime/instructions.go b/core/vm/sqlvm/runtime/instructions.go
index 53ee990ce..b5d98f956 100644
--- a/core/vm/sqlvm/runtime/instructions.go
+++ b/core/vm/sqlvm/runtime/instructions.go
@@ -18,9 +18,9 @@ type OpFunction func(ctx *common.Context, ops []*Operand, registers []*Operand,
 // Instruction represents single instruction with essential information
 // collection.
 type Instruction struct {
-	op     OpCode
-	input  []*Operand
-	output int
+	Op     OpCode
+	Input  []*Operand
+	Output int
 }
 
 // Raw with embedded big.Int value or byte slice which represents the real value
diff --git a/core/vm/sqlvm/runtime/runtime.go b/core/vm/sqlvm/runtime/runtime.go
index ebb4d4579..3ea12f119 100644
--- a/core/vm/sqlvm/runtime/runtime.go
+++ b/core/vm/sqlvm/runtime/runtime.go
@@ -8,12 +8,12 @@ import (
 // Run is runtime entrypoint.
 func Run(stateDB vm.StateDB, ins []Instruction, registers []*Operand) (ret []byte, err error) {
 	for _, in := range ins {
-		opFunc := jumpTable[in.op]
-		err = opFunc(&common.Context{}, in.input, registers, in.output)
+		opFunc := jumpTable[in.Op]
+		err = opFunc(&common.Context{}, in.Input, registers, in.Output)
 		if err != nil {
 			return nil, err
 		}
 	}
-	// TODO: ret = ABIEncode(ins[len(ins)-1].output)
+	// TODO: ret = ABIEncode(ins[len(ins)-1].Output)
 	return
 }
-- 
cgit v1.2.3