From 8a149c6f557921c75e64eb9b8fed507b2948657c Mon Sep 17 00:00:00 2001 From: tanyuan <1067598718@qq.com> Date: Mon, 25 Jun 2018 17:37:24 +0800 Subject: [PATCH] fix int to string (#416) --- core/genesis/genesis.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/genesis/genesis.go b/core/genesis/genesis.go index 9c8c01dc..1e424e57 100644 --- a/core/genesis/genesis.go +++ b/core/genesis/genesis.go @@ -19,10 +19,11 @@ package genesis import ( + "bytes" "fmt" + "strconv" "time" - "bytes" "github.com/ontio/ontology-crypto/keypair" "github.com/ontio/ontology/common" "github.com/ontio/ontology/common/config" @@ -182,7 +183,7 @@ func newParamInit() *types.Transaction { params.SetParam(&global_params.Param{k, v}) } for k, v := range neovm.GAS_TABLE { - params.SetParam(&global_params.Param{k, string(v)}) + params.SetParam(&global_params.Param{k, strconv.Itoa(int(v))}) } bf := new(bytes.Buffer) params.Serialize(bf)