Commit d4a29fb8 authored by vipwzw's avatar vipwzw

update seed print

parent 2ec151b4
......@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
## [6.0.2]
### Changed
- changed cli version cmd return json format and added title app localdb version info
- change cli seed generate -l 0 from json format to only string
## [6.0.1]
### Changed
- Update configuration files from p2p/verMix to p2p/verMin from[@libangzhu](https://github.com/libangzhu).
......
......@@ -5,6 +5,8 @@
package commands
import (
"fmt"
"github.com/33cn/chain33/rpc/jsonclient"
rpctypes "github.com/33cn/chain33/rpc/types"
"github.com/33cn/chain33/types"
......@@ -52,7 +54,12 @@ func genSeed(cmd *cobra.Command, args []string) {
}
var res types.ReplySeed
ctx := jsonclient.NewRPCCtx(rpcLaddr, "Chain33.GenSeed", params, &res)
ctx.Run()
_, err := ctx.RunResult()
if err != nil {
fmt.Println(err)
return
}
fmt.Println(res.Seed)
}
// GetSeedCmd get seed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment