From dbe086070630df0f690715dc8cb0155f4b894911 Mon Sep 17 00:00:00 2001 From: david0xd Date: Thu, 24 Oct 2024 12:43:37 +0200 Subject: [PATCH] Refactor params --- packages/snaps-simulation/src/helpers.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/snaps-simulation/src/helpers.ts b/packages/snaps-simulation/src/helpers.ts index b3123b2dd1..639b119a77 100644 --- a/packages/snaps-simulation/src/helpers.ts +++ b/packages/snaps-simulation/src/helpers.ts @@ -330,10 +330,7 @@ export function getHelpers({ ): Promise => { log('Requesting name lookup %o.', nameLookupOptions); - const { ...requestParams } = create( - nameLookupOptions, - NameLookupOptionsStruct, - ); + const params = create(nameLookupOptions, NameLookupOptionsStruct); const response = await handleRequest({ snapId, @@ -344,9 +341,7 @@ export function getHelpers({ handler: HandlerType.OnNameLookup, request: { method: '', - params: { - ...requestParams, - }, + params, }, });