Skip to content

Commit 2425dcd

Browse files
Use Json as the return type for handleRequest
1 parent f86cb09 commit 2425dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/snaps-controllers/src/multichain/MultichainRouter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class MultichainRouter {
289289
origin: string;
290290
scope: CaipChainId;
291291
request: JsonRpcRequest;
292-
}): Promise<unknown> {
292+
}): Promise<Json> {
293293
// Explicitly block EVM scopes, just in case.
294294
assert(!scope.startsWith('eip155') && !scope.startsWith('wallet:eip155'));
295295

@@ -332,7 +332,7 @@ export class MultichainRouter {
332332
},
333333
},
334334
handler: HandlerType.OnProtocolRequest,
335-
});
335+
}) as Promise<Json>;
336336
}
337337

338338
// If no compatible account or protocol Snaps were found, throw.

0 commit comments

Comments
 (0)