@@ -13,7 +13,6 @@ import { initNetworksConfig } from '../command-helpers/network';
13
13
import { chooseNodeUrl } from '../command-helpers/node' ;
14
14
import { generateScaffold , writeScaffold } from '../command-helpers/scaffold' ;
15
15
import { withSpinner } from '../command-helpers/spinner' ;
16
- import { validateStudioNetwork } from '../command-helpers/studio' ;
17
16
import { getSubgraphBasename , validateSubgraphName } from '../command-helpers/subgraph' ;
18
17
import debugFactory from '../debug' ;
19
18
import Protocol , { ProtocolName } from '../protocols' ;
@@ -245,8 +244,6 @@ export default class InitCommand extends Command {
245
244
subgraphName,
246
245
contractName,
247
246
node,
248
- studio,
249
- product,
250
247
startBlock,
251
248
spkgPath,
252
249
skipInstall,
@@ -322,8 +319,6 @@ export default class InitCommand extends Command {
322
319
indexEvents : answers . indexEvents ,
323
320
contractName : answers . contractName ,
324
321
node,
325
- studio : answers . studio ,
326
- product : answers . product ,
327
322
startBlock : answers . startBlock ,
328
323
spkgPath : answers . spkgPath ,
329
324
skipInstall,
@@ -1074,8 +1069,6 @@ async function initSubgraphFromContract(
1074
1069
indexEvents,
1075
1070
contractName,
1076
1071
node,
1077
- studio,
1078
- product,
1079
1072
startBlock,
1080
1073
spkgPath,
1081
1074
skipInstall,
@@ -1090,8 +1083,6 @@ async function initSubgraphFromContract(
1090
1083
indexEvents : boolean ;
1091
1084
contractName ?: string ;
1092
1085
node ?: string ;
1093
- studio : boolean ;
1094
- product ?: string ;
1095
1086
startBlock ?: string ;
1096
1087
spkgPath ?: string ;
1097
1088
skipInstall : boolean ;
@@ -1132,15 +1123,6 @@ async function initSubgraphFromContract(
1132
1123
this . error ( `ABI does not contain any events` , { exit : 1 } ) ;
1133
1124
}
1134
1125
1135
- // We can validate this before the scaffold because we receive
1136
- // the network from the form or via command line argument.
1137
- // We don't need to read the manifest in this case.
1138
- try {
1139
- validateStudioNetwork ( { studio, product, network } ) ;
1140
- } catch ( e ) {
1141
- this . error ( e , { exit : 1 } ) ;
1142
- }
1143
-
1144
1126
// Scaffold subgraph
1145
1127
const scaffold = await withSpinner (
1146
1128
`Create subgraph scaffold` ,
0 commit comments