From 5d63c60457d617d5be16d3fe90c8f3fe2607c1a5 Mon Sep 17 00:00:00 2001 From: Nesopie <87437291+Nesopie@users.noreply.github.com> Date: Wed, 8 Oct 2025 16:18:17 +0530 Subject: [PATCH] fix: use an empty array if forbidden countries are not specified (#1239) --- sdk/core/package.json | 2 +- sdk/core/src/SelfBackendVerifier.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/core/package.json b/sdk/core/package.json index c39c6dd7d..2a232711a 100644 --- a/sdk/core/package.json +++ b/sdk/core/package.json @@ -1,6 +1,6 @@ { "name": "@selfxyz/core", - "version": "1.1.0-beta.6", + "version": "1.1.0-beta.7", "repository": { "type": "git", "url": "https://github.com/selfxyz/self" diff --git a/sdk/core/src/SelfBackendVerifier.ts b/sdk/core/src/SelfBackendVerifier.ts index ce423ca28..ffac6dffe 100644 --- a/sdk/core/src/SelfBackendVerifier.ts +++ b/sdk/core/src/SelfBackendVerifier.ts @@ -185,7 +185,7 @@ export class SelfBackendVerifier { (x) => publicSignals[discloseIndices[attestationId].forbiddenCountriesListPackedIndex + x] ) ); - const forbiddenCountriesListVerificationConfig = verificationConfig.excludedCountries; + const forbiddenCountriesListVerificationConfig = verificationConfig.excludedCountries || []; const isForbiddenCountryListValid = forbiddenCountriesListVerificationConfig.every((country) => forbiddenCountriesList.includes(country as Country3LetterCode)