Skip to content

Commit

Permalink
Merge pull request #83 from BigWhaleLabs/move-check
Browse files Browse the repository at this point in the history
move check
  • Loading branch information
T-Damer authored Nov 16, 2023
2 parents 6a71b8c + 4d211f0 commit f93a61b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/helpers/getBatchOfEntanglementsHashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export default async function getBatchOfEntanglementsHashes(
type
)

if (hashIndex === -1) {
throw new Error(`This hash isn't among those added to the blockchain`)
}

if (isUsedAttestation && hashIndex === -1)
throw new Error(
`This verification method has already been used for another account!`
)

if (hashIndex === -1) {
throw new Error(`This hash isn't among those added to the blockchain`)
}

if (batchSize > filteredEntanglements.length)
throw new Error(`Batch hasn't been completed`)

Expand Down

0 comments on commit f93a61b

Please sign in to comment.