Select native runtime based on chain spec (#733)

* Select native runtime based on chain spec

* Bumped substrate
This commit is contained in:
Arkadiy Paronyan
2020-01-07 16:31:25 +01:00
committed by Bastian Köcher
parent d945280142
commit 0d055c9640
5 changed files with 125 additions and 130 deletions
+2 -2
View File
@@ -158,9 +158,9 @@ pub trait IsKusama {
fn is_kusama(&self) -> bool;
}
impl IsKusama for Configuration {
impl IsKusama for ChainSpec {
fn is_kusama(&self) -> bool {
self.chain_spec.name().starts_with("Kusama")
self.name().starts_with("Kusama")
}
}