Skip to content

Commit

Permalink
test: fix test on pk length
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Jun 26, 2024
1 parent 5d29714 commit dcae177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/keypair.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('token', () => {
expect(eip712.primaryType).toBe('Reencrypt');
expect(eip712.types.Reencrypt.length).toBe(1);
expect(eip712.types.Reencrypt[0].name).toBe('publicKey');
expect(eip712.types.Reencrypt[0].type).toBe('bytes32');
expect(eip712.types.Reencrypt[0].type).toBe('bytes');
});

it('create a valid EIP712 with delegated accunt', async () => {
Expand All @@ -64,7 +64,7 @@ describe('token', () => {
expect(eip712.primaryType).toBe('Reencrypt');
expect(eip712.types.Reencrypt.length).toBe(2);
expect(eip712.types.Reencrypt[0].name).toBe('publicKey');
expect(eip712.types.Reencrypt[0].type).toBe('bytes32');
expect(eip712.types.Reencrypt[0].type).toBe('bytes');
expect(eip712.types.Reencrypt[1].name).toBe('delegatedAccount');
expect(eip712.types.Reencrypt[1].type).toBe('address');
});
Expand Down

0 comments on commit dcae177

Please sign in to comment.