Skip to content

Commit

Permalink
fixing match expresion for Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
silva-fj committed Sep 12, 2024
1 parent 1382d59 commit 172d3a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tee-worker/litentry/core/evm-dynamic-assertions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ pub fn identity_with_networks_to_token(identity: &IdentityNetworkTuple) -> Token
Identity::Evm(addr) => (4, addr.as_ref().to_vec()),
Identity::Bitcoin(addr) => (5, addr.as_ref().to_vec()),
Identity::Solana(addr) => (6, addr.as_ref().to_vec()),
Identity::Email(addr) => (7, addr.inner_ref().to_vec()),
};
let networks: Vec<Token> = identity.1.iter().map(network_to_token).collect();
Token::Tuple(vec![Token::Uint(type_index.into()), Token::Bytes(value), Token::Array(networks)])
Expand Down

0 comments on commit 172d3a1

Please sign in to comment.