Skip to content

Commit

Permalink
fix: use internal object function instead of the upstream one (#316)
Browse files Browse the repository at this point in the history
This is needed to correctly support the `exactOptional` types.
  • Loading branch information
danroc committed May 24, 2024
1 parent f415476 commit 30792b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/events.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { JsonStruct } from '@metamask/utils';
import { boolean, literal, object, string } from 'superstruct';
import { boolean, literal, string } from 'superstruct';

import { KeyringAccountStruct } from '../api';
import { KeyringEvent } from '../events';
import { exactOptional } from '../superstruct';
import { exactOptional, object } from '../superstruct';
import { UuidStruct } from '../utils';

export const AccountCreatedEventStruct = object({
Expand Down

0 comments on commit 30792b6

Please sign in to comment.