Exemple #1
0
func before(cmd *cobra.Command, args []string) {
	SignAddrFlag = "http://" + SignAddrFlag
	HostAddrFlag = "http://" + HostAddrFlag
	core.EthClient = utils.NewClient(HostAddrFlag)

	log.SetLoggers(log.LogLevel(LogLevelFlag), os.Stdout, os.Stderr)
}
Exemple #2
0
func before(cmd *cobra.Command, args []string) {
	HostAddrFlag = "http://" + HostAddrFlag
	client = utils.NewClient(HostAddrFlag)

}