From 30792b634c18564b102088e7cd9e3dcd4f22b5ca Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Fri, 24 May 2024 11:24:52 +0200 Subject: [PATCH] fix: use internal `object` function instead of the upstream one (#316) This is needed to correctly support the `exactOptional` types. --- src/internal/events.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/events.ts b/src/internal/events.ts index 63a5db297..271d4f32b 100644 --- a/src/internal/events.ts +++ b/src/internal/events.ts @@ -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({