Skip to content

Commit 5603eb9

Browse files
committed
cmd/puppeth: fix key reuse during faucet deploys
1 parent 78c04c9 commit 5603eb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/puppeth/wizard_faucet.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ func (w *wizard) deployFaucet() {
165165
}
166166
// Load up the credential needed to release funds
167167
if infos.node.keyJSON != "" {
168-
var key keystore.Key
169-
if err := json.Unmarshal([]byte(infos.node.keyJSON), &key); err != nil {
168+
if key, err := keystore.DecryptKey([]byte(infos.node.keyJSON), infos.node.keyPass); err != nil {
170169
infos.node.keyJSON, infos.node.keyPass = "", ""
171170
} else {
172171
fmt.Println()

0 commit comments

Comments
 (0)