Skip to content

Commit

Permalink
refactor(api): update to check blockchain type instead of not eas check
Browse files Browse the repository at this point in the history
  • Loading branch information
waddaboo committed Oct 11, 2024
1 parent 510a876 commit 9863009
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/api/src/app/credentials/credentials.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,10 @@ export class CredentialsService {
let context: Web2Context | BlockchainContext | EASContext

if (address) {
const { network, minAttestations } = JSON.parse(
group.credentials
).criteria
const { network, minBalance, minTransactions, minAttestations } =
JSON.parse(group.credentials).criteria

if (network && !minAttestations) {
if (network && (minBalance || minTransactions)) {
const supportedNetwork =
blockchainCredentialSupportedNetworks.find(
(n) => n.name.toLowerCase() === network.toLowerCase()
Expand Down

0 comments on commit 9863009

Please sign in to comment.