We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db5fc69 commit 94c6c57Copy full SHA for 94c6c57
x/node/migrations/migrator.go
@@ -3,6 +3,7 @@ package migrations
3
import (
4
"net"
5
"net/url"
6
+ "strings"
7
"time"
8
9
"github.com/cosmos/cosmos-sdk/codec"
@@ -88,6 +89,10 @@ func (k *Migrator) migrateNodes(ctx sdk.Context) {
88
89
panic(err)
90
}
91
92
+ if !strings.Contains(item.RemoteURL, "://") {
93
+ item.RemoteURL = "https://" + item.RemoteURL
94
+ }
95
+
96
remoteURL, err := url.ParseRequestURI(item.RemoteURL)
97
if err != nil {
98
0 commit comments