Skip to content

Commit f97ccc2

Browse files
authored
Merge branch 'master' into bugfix/cd-pipleine-windows
2 parents 7608bc7 + 7a56038 commit f97ccc2

File tree

7 files changed

+1876
-57
lines changed

7 files changed

+1876
-57
lines changed

libindy/src/services/wallet/iterator.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ impl WalletIterator {
3535

3636
let tags = decrypt_tags(&next_storage_entity.tags, &self.keys.tag_name_key, &self.keys.tag_value_key)?;
3737

38-
Ok(Some(WalletRecord::new(name, None, value, tags)))
38+
let type_ = match next_storage_entity.type_ {
39+
None => None,
40+
Some(encrypted_type) => Some(String::from_utf8(decrypt(&encrypted_type, &self.keys.type_key)?)?)
41+
};
42+
43+
Ok(Some(WalletRecord::new(name, type_, value, tags)))
3944
} else { Ok(None) }
4045
}
4146

0 commit comments

Comments
 (0)