Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Use CamelCase for Enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemkaaas committed Aug 22, 2017
1 parent 6259ccb commit 360978c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libindy/src/services/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ impl LedgerService {
let role = match role {
Some(r) =>
match r.clone() {
"STEWARD" => Some(Role::STEWARD as i32),
"TRUSTEE" => Some(Role::TRUSTEE as i32),
"STEWARD" => Some(Role::Steward as i32),
"TRUSTEE" => Some(Role::Trustee as i32),
"TRUST_ANCHOR" => Some(Role::TrustAnchor as i32),
role @ _ => return Err(CommonError::InvalidStructure(format!("Invalid role: {}", role)))
},
Expand Down
4 changes: 2 additions & 2 deletions libindy/src/services/ledger/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ impl<T: JsonEncodable> JsonEncodable for Request<T> {}

#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub enum Role {
STEWARD = STEWARD,
TRUSTEE = TRUSTEE,
Steward = STEWARD,
Trustee = TRUSTEE,
TrustAnchor = TRUST_ANCHOR
}

Expand Down
2 changes: 1 addition & 1 deletion wrappers/python/tests/ledger/test_build_nym_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from indy import ledger, signus
from indy import ledger
from indy.error import ErrorCode, IndyError

import json
Expand Down

0 comments on commit 360978c

Please sign in to comment.