Skip to content

Commit ea36d87

Browse files
committed
Add smashUrl back after switching to configs from cardano-playground
1 parent 719324a commit ea36d87

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nix/internal/launcher-config.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ let
2828
preview = fromCardanoPlayground "preview";
2929
};
3030

31+
smashServers = {
32+
mainnet = "https://smash.cardano-mainnet.iohk.io";
33+
preprod = "https://preprod-smash.world.dev.cardano.org";
34+
preview = "https://preview-smash.world.dev.cardano.org";
35+
};
36+
3137
fromCardanoPlayground = envName: let
3238
originalFiles = builtins.path {
3339
name = "cardano-playground-config-${envName}";
@@ -298,8 +304,8 @@ let
298304
} // (lib.optionalAttrs (network == "selfnode") {
299305
selfnodeBin = mkBinPath "local-cluster";
300306
mockTokenMetadataServerBin = mkBinPath "mock-token-metadata-server";
301-
}) // (lib.optionalAttrs (__hasAttr "smashUrl" envCfg) {
302-
smashUrl = envCfg.smashUrl;
307+
}) // (lib.optionalAttrs (__hasAttr network smashServers) {
308+
smashUrl = smashServers.${network};
303309
}) // (lib.optionalAttrs (__hasAttr "metadataUrl" envCfg) {
304310
metadataUrl = envCfg.metadataUrl;
305311
});

0 commit comments

Comments
 (0)