From e7a0bda263c04f0c12a0c12438df13a7b777b97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 18 Jan 2024 10:35:52 +0100 Subject: [PATCH] fix() rollback name of EIP712 to Authorization token --- src/sdk/publicKey.test.ts | 2 +- src/sdk/publicKey.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdk/publicKey.test.ts b/src/sdk/publicKey.test.ts index 42599cf..179a029 100644 --- a/src/sdk/publicKey.test.ts +++ b/src/sdk/publicKey.test.ts @@ -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)}`, diff --git a/src/sdk/publicKey.ts b/src/sdk/publicKey.ts index d11b2af..8d19634 100644 --- a/src/sdk/publicKey.ts +++ b/src/sdk/publicKey.ts @@ -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.