|
|
@ -413,8 +413,9 @@ func (f *faucet) apiHandler(conn *websocket.Conn) { |
|
|
|
// Iterate over all the files and look for Ethereum addresses
|
|
|
|
// Iterate over all the files and look for Ethereum addresses
|
|
|
|
var address common.Address |
|
|
|
var address common.Address |
|
|
|
for _, file := range gist.Files { |
|
|
|
for _, file := range gist.Files { |
|
|
|
if len(file.Content) == 2+common.AddressLength*2 { |
|
|
|
content := strings.TrimSpace(file.Content) |
|
|
|
address = common.HexToAddress(file.Content) |
|
|
|
if len(content) == 2+common.AddressLength*2 { |
|
|
|
|
|
|
|
address = common.HexToAddress(content) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if address == (common.Address{}) { |
|
|
|
if address == (common.Address{}) { |
|
|
|