remove http request

This commit is contained in:
Sunny Aggarwal
2020-01-23 16:18:47 -05:00
parent 877c24d09a
commit 1addc4847a

View File

@@ -2,7 +2,6 @@ package types
import (
"encoding/json"
"net/http"
"net/url"
"regexp"
@@ -50,12 +49,6 @@ func (msg MsgStoreCode) ValidateBasic() sdk.Error {
if !u.IsAbs() {
return sdk.ErrInternal("source should be an absolute url")
}
// check if the source is reachable
resp, err := http.Get(msg.Source)
if err != nil || resp.StatusCode != 200 {
return sdk.ErrInternal("source url is not reachable")
}
}
if msg.Builder != "" {