Skip to content

Commit

Permalink
Refactor params
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Oct 24, 2024
1 parent a36a2f6 commit dbe0860
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/snaps-simulation/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,7 @@ export function getHelpers({
): Promise<SnapResponseWithoutInterface> => {
log('Requesting name lookup %o.', nameLookupOptions);

const { ...requestParams } = create(
nameLookupOptions,
NameLookupOptionsStruct,
);
const params = create(nameLookupOptions, NameLookupOptionsStruct);

const response = await handleRequest({
snapId,
Expand All @@ -344,9 +341,7 @@ export function getHelpers({
handler: HandlerType.OnNameLookup,
request: {
method: '',
params: {
...requestParams,
},
params,
},
});

Expand Down

0 comments on commit dbe0860

Please sign in to comment.