Skip to content

Commit

Permalink
Merge pull request #335 from pshenmic/feat/aliases-fix
Browse files Browse the repository at this point in the history
Aliases status fix
  • Loading branch information
pshenmic authored Nov 27, 2024
2 parents 63b52d1 + 56f165a commit 60889e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/dao/IdentitiesDAO.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ module.exports = class IdentitiesDAO {
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 60889e2

Please sign in to comment.