Skip to content

Commit

Permalink
lowercase on ActorType
Browse files Browse the repository at this point in the history
  • Loading branch information
snaumov committed Aug 14, 2020
1 parent 1dca2e4 commit 528f04f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/src/genesis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use serde::Serialize;
use vm::TokenAmount;

#[derive(Serialize)]
#[serde(rename_all = "lowercase")]
pub enum ActorType {
Account,
MultiSig,
Expand Down Expand Up @@ -41,6 +42,7 @@ pub struct Template {
pub accounts: Vec<Actor>,
pub miners: Vec<Miner>,
pub network_name: String,
actor_type: ActorType,
// timestamp: SystemTime,
}

Expand All @@ -50,6 +52,7 @@ impl Template {
accounts: Vec::new(),
miners: Vec::new(),
network_name,
actor_type: ActorType::Account,
}
}
}

0 comments on commit 528f04f

Please sign in to comment.