Skip to content

Commit

Permalink
Merge pull request #46 from zama-ai/authorization-token
Browse files Browse the repository at this point in the history
fix() rollback name of EIP712 to Authorization token
  • Loading branch information
immortal-tofu authored Jan 18, 2024
2 parents 8cc438c + e7a0bda commit cad4d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sdk/publicKey.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('token', () => {
verifyingContract: '0xccc',
});
expect(eip712.domain.chainId).toBe(9000);
expect(eip712.domain.name).toBe('Reencryption');
expect(eip712.domain.name).toBe('Authorization token');
expect(eip712.domain.version).toBe('1');
expect(eip712.message.publicKey).toBe(
`0x${toHexString(keypair.publicKey)}`,
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/publicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const generatePublicKey = (
primaryType: 'Reencrypt',
domain: {
// Give a user-friendly name to the specific contract you're signing for.
name: params.name || 'Reencryption',
name: params.name || 'Authorization token',
// This identifies the latest version.
version: params.version || '1',
// This defines the network, in this case, Mainnet.
Expand Down

0 comments on commit cad4d83

Please sign in to comment.