File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
packages/snaps-simulation/src Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,7 @@ export type SnapHelpers = {
141141 * @param keyringRequest - Keyring request.
142142 * @returns The response.
143143 */
144- onKeyringRequest (
145- keyringRequest : KeyringOptions ,
146- ) : Promise < SnapResponseWithoutInterface > ;
144+ onKeyringRequest ( keyringRequest : KeyringOptions ) : SnapRequest ;
147145
148146 /**
149147 * Get the response from the Snap's `onInstall` handler.
@@ -270,12 +268,10 @@ export function getHelpers({
270268 } ) ;
271269 } ;
272270
273- const onKeyringRequest = async (
274- request : KeyringOptions ,
275- ) : Promise < SnapResponseWithoutInterface > => {
271+ const onKeyringRequest = ( request : KeyringOptions ) => {
276272 log ( 'Sending keyring request %o.' , request ) ;
277273
278- const response = await handleRequest ( {
274+ return handleRequest ( {
279275 snapId,
280276 store,
281277 executionService,
@@ -284,8 +280,6 @@ export function getHelpers({
284280 handler : HandlerType . OnKeyringRequest ,
285281 request,
286282 } ) ;
287-
288- return response ;
289283 } ;
290284
291285 return {
You can’t perform that action at this time.
0 commit comments