cmd/puppeth: fix key reuse during faucet deploys

parent 78c04c92
...@@ -165,8 +165,7 @@ func (w *wizard) deployFaucet() { ...@@ -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()
......
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