pub fn from_embedded(json: &'static [u8]) -> Result<Self, String> {
		let spec = json::from_slice(json).map_err(|e| format!("Error parsing spec file: {}", e))?;
		Ok(ChainSpec {
			spec,
			genesis: GenesisSource::Embedded(json),
		})
	}
/// Parse json content into a `ChainSpec`
Parse json content into a `ChainSpec`
Parse json content into a ` ChainSpec `
pub fn from_embedded(json: &'static [u8]) -> Result<Self, String> {
		let spec = json::from_slice(json).map_err(|e| format!("Error parsing spec file: {}", e))?;
		Ok(ChainSpec {
			spec,
			genesis: GenesisSource::Embedded(json),
		})
	}
pub fn from_embedded ( json : & ' static [ u8 ] ) -> Result < Self , String > { let spec = json :: from_slice ( json ) . map_err ( | e | format ! ( " " e ) ) ? ; Ok ( ChainSpec { spec , genesis : GenesisSource :: Embedded ( json ) , } ) }
Parse json content into a `ChainSpec`
Parse json content into a ` ChainSpec `
json
&'static [u8]
json
&'static [u8]