Skip to content

Commit

Permalink
ajout nym trustee
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Martel <[email protected]>
  • Loading branch information
SylvainMartel committed Aug 29, 2024
1 parent 915bf8b commit 270c115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub enum MyRoles {
Endorser = 101,
NetworkMonitor = 201,
Steward = 2,
Trustee = 0,
}

pub struct SchemaInfo {
Expand Down
2 changes: 2 additions & 0 deletions src/publish_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ pub fn publish_tool_ui(
ui.selectable_value(&mut *nym_role, MyRoles::Endorser, "Endorser");
ui.selectable_value(&mut *nym_role, MyRoles::NetworkMonitor, "Network Monitor");
ui.selectable_value(&mut *nym_role, MyRoles::Steward, "Steward");
ui.selectable_value(&mut *nym_role, MyRoles::Trustee, "Trustee");
});

// Check each field and add the name of the missing fields to a vector
Expand Down Expand Up @@ -290,6 +291,7 @@ pub fn publish_tool_ui(
MyRoles::Endorser => UpdateRole::Set(LedgerRole::Endorser),
MyRoles::NetworkMonitor => UpdateRole::Set(LedgerRole::NetworkMonitor),
MyRoles::Steward => UpdateRole::Set(LedgerRole::Steward),
MyRoles::Trustee => UpdateRole::Set(LedgerRole::Trustee),
};
if let Some(ledger) = ledgers {
match block_on(IndyLedger::publish_nym(
Expand Down

0 comments on commit 270c115

Please sign in to comment.