Skip to content

Commit

Permalink
fix int to string (DNAProject#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanZiWen authored and laizy committed Jun 25, 2018
1 parent f1eec5c commit 8a149c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8a149c6

Please sign in to comment.