File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed
packages/cli/src/protocols Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphprotocol/graph-cli ' : patch
3
+ ---
4
+
5
+ only allow mainnet for substreams in network selection for init
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export default class Protocol {
74
74
}
75
75
76
76
static availableNetworks ( ) {
77
- let networks = immutable . fromJS ( {
77
+ return immutable . fromJS ( {
78
78
arweave : [ 'arweave-mainnet' ] ,
79
79
ethereum : [
80
80
'mainnet' ,
@@ -124,16 +124,6 @@ export default class Protocol {
124
124
'arweave' | 'ethereum' | 'near' | 'cosmos' | 'substreams' ,
125
125
immutable . List < string >
126
126
> ;
127
-
128
- const allNetworks : string [ ] = [ ] ;
129
- // eslint-disable-next-line unicorn/no-array-for-each
130
- networks . forEach ( value => {
131
- allNetworks . push ( ...value ) ;
132
- } ) ;
133
-
134
- networks = networks . set ( 'substreams' , immutable . List ( allNetworks ) ) ;
135
-
136
- return networks ;
137
127
}
138
128
139
129
static normalizeName ( name : ProtocolName ) {
You can’t perform that action at this time.
0 commit comments