Skip to content

Commit

Permalink
cmd/puppeth: fix key reuse during faucet deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jun 23, 2017
1 parent 78c04c9 commit 5603eb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/puppeth/wizard_faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ func (w *wizard) deployFaucet() {
}
// Load up the credential needed to release funds
if infos.node.keyJSON != "" {
var key keystore.Key
if err := json.Unmarshal([]byte(infos.node.keyJSON), &key); err != nil {
if key, err := keystore.DecryptKey([]byte(infos.node.keyJSON), infos.node.keyPass); err != nil {
infos.node.keyJSON, infos.node.keyPass = "", ""
} else {
fmt.Println()
Expand Down

0 comments on commit 5603eb9

Please sign in to comment.