Skip to content

Commit

Permalink
Merge pull request #49 from ontio/master3
Browse files Browse the repository at this point in the history
fix buildNativeInvokeCode bug
  • Loading branch information
lucas7788 authored Nov 26, 2018
2 parents 3627a48 + f9bb6b2 commit 1964a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 1964a73

Please sign in to comment.