Skip to content
Snippets Groups Projects
Commit 10250c45 authored by inso's avatar inso
Browse files

Fixed bugs

- UID parsing in selfcert
- Old contacts format in certify
parent 49e91b39
No related branches found
No related tags found
No related merge requests found
......@@ -186,11 +186,11 @@ class Person(object):
for result in data['results']:
if result["pubkey"] == self.pubkey:
uids = result['uids']
for uid in uids:
if uid["meta"]["timestamp"] > timestamp:
timestamp = uid["meta"]["timestamp"]
uid = uid["uid"]
signature = uid["self"]
for uid_data in uids:
if uid_data["meta"]["timestamp"] > timestamp:
timestamp = uid_data["meta"]["timestamp"]
uid = uid_data["uid"]
signature = uid_data["self"]
return SelfCertification(PROTOCOL_VERSION,
community.currency,
......
......@@ -33,7 +33,7 @@ class CertificationDialog(QDialog, Ui_CertificationDialog):
def accept(self):
if self.radio_contact.isChecked():
index = self.combo_contact.currentIndex()
pubkey = self.account.contacts[index].pubkey
pubkey = self.account.contacts[index]['pubkey']
else:
pubkey = self.edit_pubkey.text()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment