Skip to content

Commit

Permalink
Revert "Add permit type schema (#399)" (#401)
Browse files Browse the repository at this point in the history
This reverts commit eaa3bdf.
  • Loading branch information
cryptotavares authored Dec 6, 2024
1 parent 1a02afc commit cdccf91
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/sign-typed-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,6 @@ export type TypedMessage<T extends MessageTypes> = {
message: Record<string, unknown>;
};

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: {
Expand All @@ -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,
};

/**
Expand Down

0 comments on commit cdccf91

Please sign in to comment.