good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 671ba379 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

cmd/faucet: ignore whitespace in gist content

parent 23c6fcdb
No related branches found
No related tags found
No related merge requests found
......@@ -413,8 +413,9 @@ func (f *faucet) apiHandler(conn *websocket.Conn) {
// Iterate over all the files and look for Ethereum addresses
var address common.Address
for _, file := range gist.Files {
if len(file.Content) == 2+common.AddressLength*2 {
address = common.HexToAddress(file.Content)
content := strings.TrimSpace(file.Content)
if len(content) == 2+common.AddressLength*2 {
address = common.HexToAddress(content)
}
}
if address == (common.Address{}) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment