aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_wallet.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-11-23 20:22:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-23 20:22:59 +0800
commita3a2c6b0d9f963c9377612cae1ed6ded6f216c2d (patch)
tree9c776ad507336517680ce447e2649c6e38fca29a /cmd/puppeth/wizard_wallet.go
parentb169a309f9f22eff18a66b4e3a97dd0184a946e8 (diff)
downloaddexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.gz
dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.tar.zst
dexon-a3a2c6b0d9f963c9377612cae1ed6ded6f216c2d.zip
cmd/puppeth: fix typos and review suggestions
Diffstat (limited to 'cmd/puppeth/wizard_wallet.go')
-rw-r--r--cmd/puppeth/wizard_wallet.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/puppeth/wizard_wallet.go b/cmd/puppeth/wizard_wallet.go
index aa6d1c659..7c3896a17 100644
--- a/cmd/puppeth/wizard_wallet.go
+++ b/cmd/puppeth/wizard_wallet.go
@@ -43,15 +43,14 @@ func (w *wizard) deployWallet() {
client := w.servers[server]
// Retrieve any active node configurations from the server
- existed := true
-
infos, err := checkWallet(client, w.network)
if err != nil {
infos = &walletInfos{
nodePort: 30303, rpcPort: 8545, webPort: 80, webHost: client.server,
}
- existed = false
}
+ existed := err == nil
+
infos.genesis, _ = json.MarshalIndent(w.conf.Genesis, "", " ")
infos.network = w.conf.Genesis.Config.ChainId.Int64()