Skip to content

Commit

Permalink
change err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Apr 9, 2024
1 parent d421560 commit 843e358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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(`issuer state is not valid`);
export const issuerStateError = new Error(`user state is not valid`);
export const gistStateError = new Error(`gist state is not valid`);

export async function checkUserState(
Expand Down
2 changes: 1 addition & 1 deletion test/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Common', () => {
it('checkUserState fails', async () => {
await expect(
checkUserState(mockResolverWithNoStateInContract, issuerID, hash)
).rejects.toThrow('issuer state is not valid');
).rejects.toThrow('user state is not valid');
});
it('checkUserState', async () => {
await checkUserState(mockResolverWithNotLatesState, issuerID, hash);
Expand Down

0 comments on commit 843e358

Please sign in to comment.