From cdccf913f34005ea1b5fcefe9201c42be5bfb898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Tavares?= Date: Fri, 6 Dec 2024 14:33:21 +0000 Subject: [PATCH] Revert "Add permit type schema (#399)" (#401) This reverts commit eaa3bdf4baca71f6cb04cf47cd9f75c0f7a0b20b. --- src/sign-typed-data.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/sign-typed-data.ts b/src/sign-typed-data.ts index 0da59a81..c0ce1d3c 100644 --- a/src/sign-typed-data.ts +++ b/src/sign-typed-data.ts @@ -105,22 +105,6 @@ export type TypedMessage = { message: Record; }; -const PERMIT_TYPE_SCHEMA = { - properties: { - message: { - type: 'object', - properties: { - owner: { type: 'string' }, - spender: { type: 'string' }, - value: { type: 'string' }, - nonce: { type: 'string' }, - deadline: { type: 'string' }, - }, - required: ['owner', 'spender', 'value', 'nonce', 'deadline'], - }, - }, -}; - export const TYPED_MESSAGE_SCHEMA = { type: 'object', properties: { @@ -143,10 +127,6 @@ export const TYPED_MESSAGE_SCHEMA = { message: { type: 'object' }, }, required: ['types', 'primaryType', 'domain', 'message'], - if: { - properties: { primaryType: { const: 'Permit' } }, - }, - then: PERMIT_TYPE_SCHEMA, }; /**