Skip to content

Commit

Permalink
Remove redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Oct 25, 2023
1 parent 8e0da64 commit 79678d7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/indexer/src/entities/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,6 @@ pub struct Identity {
pub revision: Revision,
pub balance: Option<u64>,
}
//
// impl From<Row> for Identity {
// fn from(row: Row) -> Self {
// let id: u32 = row.get(0);
//
// let balance:u64 = row.get(1);
//
// let identifier_str: String = row.get(1);
// let identifier = Identifier::from_string(&identifier_str, Encoding::Base58).unwrap();
//
// let revision: i32 = row.get(3);
//
// return Identity {
// id: Some(id),
// identifier,
// balance,
// revision: Revision::from(revision as u64)
// };
// }
// }

impl From<IdentityCreateTransition> for Identity {
fn from(state_transition: IdentityCreateTransition) -> Self {
Expand Down

0 comments on commit 79678d7

Please sign in to comment.