JoshOrndorff / utxo-workshop

A Substrate UTXO workshop
The Unlicense
117 stars 81 forks source link

`build-spec` subcommand broken #60

Open JoshOrndorff opened 4 years ago

JoshOrndorff commented 4 years ago

The helper information that prints the genesis UTXOs and sigs interferes with the build-spec sub command. Specifically that helper information is printed at the top of the resulting json file making it invalid.

To reproduce:

./target/release/node-template build-spec > spec.json
./target/release/node-template --chain=spec.json # Error invalid json
vim spec.json #Observe the printed lines at the top

These lines https://github.com/substrate-developer-hub/utxo-workshop/blob/3a59a31b55c2b09fa9507c3ac69b13fa2f91648a/node/src/chain_spec.rs#L139-L144