fix: invalid keyuid being used with a newly generated account on first login

This commit is contained in:
Richard Ramos 2021-07-01 10:16:04 -04:00 committed by Iuri Matias
parent 6efe90ef77
commit 0f66508a79
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ QtObject:
name: currNodeAcct.name,
identicon: currNodeAcct.identicon,
address: currNodeAcct.keyUid,
keyUid: currNodeAcct.keyUid,
identityImage: currNodeAcct.identityImage
))

View File

@ -96,7 +96,7 @@ type
error*: RpcError
proc toAccount*(account: GeneratedAccount): Account =
result = Account(name: account.name, identityImage: account.identityImage, identicon: account.identicon, keyUid: account.address)
result = Account(name: account.name, identityImage: account.identityImage, identicon: account.identicon, keyUid: account.keyUid)
proc toAccount*(account: NodeAccount): Account =
result = Account(name: account.name, identityImage: account.identityImage, identicon: account.identicon, keyUid: account.keyUid)