Skip to content

Commit b8a4175

Browse files
authored
Makes the spec generation script fail on error (paritytech#312)
1 parent d146ee1 commit b8a4175

4 files changed

+20
-2
lines changed

scripts/generate-parachain-specs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23
source scripts/_init_var.sh
34

45
echo "=================== Alphanet ==================="

scripts/generate-relay-specs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23
source scripts/_init_var.sh
34

45
if [ -z "$POLKADOT_VERSION" ]; then

specs/alphanet/parachain-specs-template.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,15 @@
8282
]
8383
},
8484
"palletScheduler": {},
85-
"palletDemocracy": {}
85+
"palletDemocracy": {},
86+
"palletCollectiveInstance1": {
87+
"phantom": null,
88+
"members": []
89+
},
90+
"palletCollectiveInstance2": {
91+
"phantom": null,
92+
"members": []
93+
}
8694
}
8795
}
8896
}

specs/stagenet/parachain-specs-template.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@
7878
]
7979
},
8080
"palletScheduler": {},
81-
"palletDemocracy": {}
81+
"palletDemocracy": {},
82+
"palletCollectiveInstance1": {
83+
"phantom": null,
84+
"members": []
85+
},
86+
"palletCollectiveInstance2": {
87+
"phantom": null,
88+
"members": []
89+
}
8290
}
8391
}
8492
}

0 commit comments

Comments
 (0)