Add Ellaism to SpecType
This commit is contained in:
parent
dcf6e1d83d
commit
fcd1f72806
@ -36,6 +36,7 @@ pub enum SpecType {
|
||||
Classic,
|
||||
Expanse,
|
||||
Musicoin,
|
||||
Ellaism,
|
||||
Dev,
|
||||
Custom(String),
|
||||
}
|
||||
@ -59,6 +60,7 @@ impl str::FromStr for SpecType {
|
||||
"olympic" => SpecType::Olympic,
|
||||
"expanse" => SpecType::Expanse,
|
||||
"musicoin" => SpecType::Musicoin,
|
||||
"ellaism" => SpecType::Ellaism,
|
||||
"dev" => SpecType::Dev,
|
||||
other => SpecType::Custom(other.into()),
|
||||
};
|
||||
@ -76,6 +78,7 @@ impl fmt::Display for SpecType {
|
||||
SpecType::Classic => "classic",
|
||||
SpecType::Expanse => "expanse",
|
||||
SpecType::Musicoin => "musicoin",
|
||||
SpecType::Ellaism => "ellaism",
|
||||
SpecType::Kovan => "kovan",
|
||||
SpecType::Dev => "dev",
|
||||
SpecType::Custom(ref custom) => custom,
|
||||
@ -94,6 +97,7 @@ impl SpecType {
|
||||
SpecType::Classic => Ok(ethereum::new_classic(params)),
|
||||
SpecType::Expanse => Ok(ethereum::new_expanse(params)),
|
||||
SpecType::Musicoin => Ok(ethereum::new_musicoin(params)),
|
||||
SpecType::Ellaism => Ok(ethereum::new_ellaism(params)),
|
||||
SpecType::Kovan => Ok(ethereum::new_kovan(params)),
|
||||
SpecType::Dev => Ok(Spec::new_instant()),
|
||||
SpecType::Custom(ref filename) => {
|
||||
|
Loading…
Reference in New Issue
Block a user