Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Apr 9, 2024
1 parent 843e358 commit 9f56951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/circuits/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Id, DID } from '@iden3/js-iden3-core';
import { IStateResolver, ResolvedState, Resolvers } from '@lib/state/resolver';
import { Hash } from '@iden3/js-merkletree';

export const issuerStateError = new Error(`user state is not valid`);
export const userStateError = new Error(`user state is not valid`);
export const gistStateError = new Error(`gist state is not valid`);

export async function checkUserState(
Expand All @@ -13,7 +13,7 @@ export async function checkUserState(
try {
return await resolver.resolve(userId.bigInt(), userState.bigInt());
} catch {
throw issuerStateError;
throw userStateError;
}
}

Expand Down

0 comments on commit 9f56951

Please sign in to comment.