Skip to content

Commit 5983643

Browse files
authored
Merge pull request #3227 from input-output-hk/fix/LW-11497-metadata-url
[LW-11497] Fix token metadata server URL on all networks
2 parents 8148c3e + 26dc634 commit 5983643

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Fixes
66

7+
- Fix token metadata server URL on all networks ([PR 3227](https://github.com/input-output-hk/daedalus/pull/3227))
8+
79
- Un-brick auto-update on devices where it failed in the past ([PR 3223](https://github.com/input-output-hk/daedalus/pull/3223))
810

911
## 6.0.1

nix/internal/launcher-config.nix

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ let
3434
preview = "https://preview-smash.world.dev.cardano.org";
3535
};
3636

37+
tokenMetadataServers = {
38+
mainnet = "https://tokens.cardano.org";
39+
preprod = "https://metadata.world.dev.cardano.org";
40+
preview = "https://metadata.world.dev.cardano.org";
41+
};
42+
3743
fromCardanoPlayground = envName: let
3844
originalFiles = builtins.path {
3945
name = "cardano-playground-config-${envName}";
@@ -57,6 +63,7 @@ let
5763
cardanoEnv = {
5864
inherit nodeConfig;
5965
topologyFile = originalFiles + "/topology.json";
66+
metadataUrl = tokenMetadataServers.${envName};
6067
};
6168
};
6269

@@ -301,13 +308,13 @@ let
301308
topologyFile = mkConfigPath nodeConfigFiles "topology.yaml";
302309
};
303310
};
304-
} // (lib.optionalAttrs (network == "selfnode") {
311+
} // (lib.optionalAttrs (network != "selfnode") {
312+
metadataUrl = envCfg.metadataUrl;
313+
}) // (lib.optionalAttrs (network == "selfnode") {
305314
selfnodeBin = mkBinPath "local-cluster";
306315
mockTokenMetadataServerBin = mkBinPath "mock-token-metadata-server";
307316
}) // (lib.optionalAttrs (__hasAttr network smashServers) {
308317
smashUrl = smashServers.${network};
309-
}) // (lib.optionalAttrs (__hasAttr "metadataUrl" envCfg) {
310-
metadataUrl = envCfg.metadataUrl;
311318
});
312319

313320
installerConfig = {

source/main/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export const DISK_SPACE_CHECK_TIMEOUT = 9 * 1000; // Timeout for checking disks
174174

175175
// Used if token metadata server URL is not defined in launcher config
176176
export const FALLBACK_TOKEN_METADATA_SERVER_URL =
177-
'https://metadata.cardano-testnet.iohkdev.io';
177+
'https://metadata.world.dev.cardano.org';
178178
export const MINIMUM_AMOUNT_OF_RAM_FOR_RTS_FLAGS = 16 * 1024 * 1024 * 1024; // 16gb RAM
179179

180180
// Used by mock-token-metadata-server

0 commit comments

Comments
 (0)