Skip to content

Commit

Permalink
omniaccount: add getter
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Alvarez <[email protected]>
  • Loading branch information
jonalvarezz committed Oct 25, 2024
1 parent 318d2a3 commit 85c87fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tee-worker/identity/app-libs/stf/src/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ pub enum PublicGetter {
nonce(Identity),
#[codec(index = 2)]
id_graph_hash(Identity),
#[codec(index = 3)]
omniaccount(Identity),
}

#[derive(Encode, Decode, Clone, Debug, PartialEq, Eq)]
Expand Down Expand Up @@ -289,6 +291,7 @@ impl ExecuteGetter for PublicGetter {
},
PublicGetter::id_graph_hash(identity) =>
IdentityManagement::id_graph_hash(&identity).map(|h| h.encode()),
PublicGetter::omniaccount(identity) => identity.to_native_account().map(|h| h.encode()),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default {
some_value: "u32",
nonce: "(LitentryIdentity)",
id_graph_hash: "(LitentryIdentity)",
omniaccount: "(LitentryIdentity)",
},
},

Expand Down

0 comments on commit 85c87fa

Please sign in to comment.