Skip to content

Commit 07d9568

Browse files
fixes after review + test fix
1 parent b544cf6 commit 07d9568

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

config/config.e2e.mainnet.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ features:
116116
serviceUrl: 'https://api.multiversx.com'
117117
assetsFetch:
118118
enabled: false
119-
asseteUrl: 'https://tools.multiversx.com/assets-cdn'
119+
assetsUrl: 'https://tools.multiversx.com/assets-cdn'
120120
image:
121121
width: 600
122122
height: 600

src/common/api-config/api.config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ export class ApiConfigService {
894894

895895
getAssetsCdnUrl(): string {
896896
return this.configService.get<string>('features.assetsFetch.assetsUrl')
897-
?? this.configService.get<string>('features.assetsFetch.assetesUrl')
897+
?? this.configService.get<string>('features.assetsFetch.assetesUrl') // todo: remove this in the future
898898
?? 'https://tools.multiversx.com/assets-cdn';
899899
}
900900

src/test/unit/controllers/network.controller.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import request = require('supertest');
99
import { Economics } from "src/endpoints/network/entities/economics";
1010
import { Stats } from "src/endpoints/network/entities/stats";
1111
import { About } from "src/endpoints/network/entities/about";
12+
import { FeatureConfigs } from "../../../endpoints/network/entities/feature.configs";
1213

1314
describe("NetworkController", () => {
1415
let app: INestApplication;
@@ -102,12 +103,14 @@ describe("NetworkController", () => {
102103
indexerVersion: "v1.4.19",
103104
gatewayVersion: "v1.1.44-0-g5282fa5",
104105
scamEngineVersion: "1.0.0",
105-
features: {
106+
features: new FeatureConfigs({
106107
updateCollectionExtraDetails: true,
107108
marketplace: true,
108109
exchange: true,
109110
dataApi: true,
110-
},
111+
tokensFetch: false,
112+
providersFetch: true,
113+
}),
111114
};
112115
networkServiceMocks.getAbout.mockResolvedValue(mockAbout);
113116

0 commit comments

Comments
 (0)