Allow creating a ChainSpec from a Vec<u8> (#3233)

* Allow creating a ChainSpec from a Vec<u8>

* Line widths

* Embedded -> Binary

* Remove from_embedded
This commit is contained in:
Pierre Krieger
2019-07-29 20:50:50 +02:00
committed by Bastian Köcher
parent 7658eb6b88
commit 20eb52d6bb
2 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ pub type ChainSpec = substrate_service::ChainSpec<GenesisConfig>;
/// Flaming Fir testnet generator
pub fn flaming_fir_config() -> Result<ChainSpec, String> {
ChainSpec::from_embedded(include_bytes!("../res/flaming-fir.json"))
ChainSpec::from_json_bytes(&include_bytes!("../res/flaming-fir.json")[..])
}
fn session_keys(ed_key: ed25519::Public, sr_key: sr25519::Public) -> SessionKeys {