mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
default to alexander testnet (#83)
* default to alexander testnet * use empty pattern-match
This commit is contained in:
committed by
GitHub
parent
bf63c5f9b8
commit
7ac1fe9c01
@@ -32,6 +32,12 @@ pub enum ChainSpec {
|
||||
StagingTestnet,
|
||||
}
|
||||
|
||||
impl Default for ChainSpec {
|
||||
fn default() -> Self {
|
||||
ChainSpec::Alexander
|
||||
}
|
||||
}
|
||||
|
||||
/// Get a chain config from a spec setting.
|
||||
impl ChainSpec {
|
||||
pub(crate) fn load(self) -> Result<service::ChainSpec, String> {
|
||||
@@ -49,6 +55,7 @@ impl ChainSpec {
|
||||
"local" => Some(ChainSpec::LocalTestnet),
|
||||
"poc-3" | "alex" | "alexander" => Some(ChainSpec::Alexander),
|
||||
"staging" => Some(ChainSpec::StagingTestnet),
|
||||
"" => Some(ChainSpec::default()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user