-
Notifications
You must be signed in to change notification settings - Fork 20.8k
cmd/puppeth: your Ethereum private network manager #13854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
karalabe
commented
Mar 30, 2017
•
edited
Loading
edited
@karalabe, thanks for your PR! By analyzing the history of the files in this pull request, we identified @obscuren, @zsfelfoldi and @Gustav-Simonsson to be potential reviewers. |
9af9471
to
cdc35e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't really comment on the docker stuff, but the wizard works and feels friendly.
continue | ||
} | ||
if gist.Owner.Login == "" { | ||
websocket.JSON.Send(conn, map[string]string{"error": "Nice try ;)"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's usually best to split up code into functions so the handling of the error can be done once. If you move handling of gists and their content into a function, you could remove most of the
websocket.JSON.Send(conn, map[string]string{"error": "..."})
continue
cmd/faucet/faucet.go
Outdated
websocket.JSON.Send(conn, map[string]string{"error": "URL doesn't link to GitHub Gists"}) | ||
continue | ||
} | ||
log.Info("Faucet funs requested", "gist", msg.URL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
funs -> funds
cmd/faucet/faucet.html
Outdated
</div> | ||
<div class="row"> | ||
<div class="col-lg-8 col-lg-offset-2"> | ||
<div class="input-group"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML indentation is totally nuts here. Maybe use a formatter.
@fjl PTAL. I fixed the typo and the indentation. I did not have time tonight to address the error handling. Please consider whether you can live with the current code, and if not, I'll try to address it tomorrow. |
I can live with almost anything, including this PR. |