From f9bb6b2846b00242de22404fcac66a2b6b34f330 Mon Sep 17 00:00:00 2001 From: lucas7788 Date: Mon, 26 Nov 2018 10:29:38 +0800 Subject: [PATCH] fix buildNativeInvokeCode bug --- native_contract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native_contract.go b/native_contract.go index cfc0bed..7419ea5 100644 --- a/native_contract.go +++ b/native_contract.go @@ -10,7 +10,7 @@ import ( "github.com/ontio/ontology/common" "github.com/ontio/ontology/common/serialization" "github.com/ontio/ontology/core/types" - httpcom "github.com/ontio/ontology/http/base/common" + cutils "github.com/ontio/ontology/core/utils" "github.com/ontio/ontology/smartcontract/service/native/global_params" "github.com/ontio/ontology/smartcontract/service/native/ont" ) @@ -67,7 +67,7 @@ func (this *NativeContract) NewNativeInvokeTransaction( if len(params) == 0 { params = append(params, "") } - invokeCode, err := httpcom.BuildNativeInvokeCode(contractAddress, version, method, params) + invokeCode, err := cutils.BuildNativeInvokeCode(contractAddress, version, method, params) if err != nil { return nil, fmt.Errorf("BuildNativeInvokeCode error:%s", err) }