cmd/puppeth: fix key reuse during faucet deploys

This commit is contained in:
Péter Szilágyi 2017-06-23 13:34:21 +03:00
parent 78c04c920d
commit 5603eb9116
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ func (w *wizard) deployFaucet() {
} }
// Load up the credential needed to release funds // Load up the credential needed to release funds
if infos.node.keyJSON != "" { if infos.node.keyJSON != "" {
var key keystore.Key if key, err := keystore.DecryptKey([]byte(infos.node.keyJSON), infos.node.keyPass); err != nil {
if err := json.Unmarshal([]byte(infos.node.keyJSON), &key); err != nil {
infos.node.keyJSON, infos.node.keyPass = "", "" infos.node.keyJSON, infos.node.keyPass = "", ""
} else { } else {
fmt.Println() fmt.Println()