File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 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 } " ;
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 } ) ;
You can’t perform that action at this time.
0 commit comments