diff --git a/client/client.go b/client/client.go index 13bae42d4..0e6e52b7c 100644 --- a/client/client.go +++ b/client/client.go @@ -31,14 +31,14 @@ type Client interface { Subscribe(ctx context.Context, namespace string, channel interface{}, args ...interface{}) ( *rpc.ClientSubscription, error) - GetURL() string + URL() string //MetaData(cache bool) (*MetadataVersioned, error) } type client struct { *rpc.Client - URL string + url string // metadataVersioned is the metadata cache to prevent unnecessary requests //metadataVersioned *MetadataVersioned @@ -48,7 +48,7 @@ type client struct { // Returns the URL the client connects to func (c client) URL() string { - return c.URL + return c.url } // TODO move to State struct diff --git a/teste2e/main_test.go b/teste2e/main_test.go index 05eaa0221..ad4925bba 100644 --- a/teste2e/main_test.go +++ b/teste2e/main_test.go @@ -36,6 +36,6 @@ func TestGetBlockHashAndVersion(t *testing.T) { assert.NoError(t, err) fmt.Printf("Connected to node %v | latest block hash: %v | authoringVersion: %v | specVersion: %v | "+ - "implVersion: %v\n", (*api.Client).GetURL(), hash.Hex(), runtimeVersion.AuthoringVersion, + "implVersion: %v\n", (*api.Client).URL(), hash.Hex(), runtimeVersion.AuthoringVersion, runtimeVersion.SpecVersion, runtimeVersion.ImplVersion) }