Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Nov 27, 2024
1 parent 0872f26 commit 950fbee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/api/src/dao/IdentitiesDAO.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ module.exports = class IdentitiesDAO {

const identity = Identity.fromRow(row)

identity.aliases = ['xyz.dash']

const aliases = await Promise.all(identity.aliases.map(async alias => {
const aliasInfo = await getAliasInfo(alias, this.dapi)

const isLocked = base58.encode(
Buffer.from(aliasInfo.contestedState?.finishedVoteInfo?.wonByIdentityId ?? ''),
'base64') !== identifier
Buffer.from(aliasInfo.contestedState?.finishedVoteInfo?.wonByIdentityId ?? '', 'base64')
) !== identifier

return {
alias,
Expand Down

0 comments on commit 950fbee

Please sign in to comment.