diff --git a/blockchain/endpointProviders/baseEndpointProvider.go b/blockchain/endpointProviders/baseEndpointProvider.go index 76bd32d2..aa59c1c7 100644 --- a/blockchain/endpointProviders/baseEndpointProvider.go +++ b/blockchain/endpointProviders/baseEndpointProvider.go @@ -19,8 +19,8 @@ const ( genesisNodesConfig = "network/genesis-nodes" rawStartOfEpochMetaBlock = "internal/raw/startofepoch/metablock/by-epoch/%d" rawStartOfEpochValidators = "internal/json/startofepoch/validators/by-epoch/%d" - nodeGetGuardianData = "/%s/guardian-data" - ) + nodeGetGuardianData = "address/%s/guardian-data" +) type baseEndpointProvider struct{} diff --git a/blockchain/endpointProviders/baseEndpointProvider_test.go b/blockchain/endpointProviders/baseEndpointProvider_test.go index 92cad273..dec54ed3 100644 --- a/blockchain/endpointProviders/baseEndpointProvider_test.go +++ b/blockchain/endpointProviders/baseEndpointProvider_test.go @@ -25,5 +25,5 @@ func TestBaseEndpointProvider(t *testing.T) { assert.Equal(t, vmValues, base.GetVmValues()) assert.Equal(t, genesisNodesConfig, base.GetGenesisNodesConfig()) assert.Equal(t, "internal/raw/startofepoch/metablock/by-epoch/5", base.GetRawStartOfEpochMetaBlock(5)) - assert.Equal(t, "/dummyAddress/guardian-data", base.GetGuardianData("dummyAddress")) + assert.Equal(t, "address/dummyAddress/guardian-data", base.GetGuardianData("dummyAddress")) }