Skip to content

Commit

Permalink
Use Json as the return type for handleRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Jan 30, 2025
1 parent f86cb09 commit 2425dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/snaps-controllers/src/multichain/MultichainRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class MultichainRouter {
origin: string;
scope: CaipChainId;
request: JsonRpcRequest;
}): Promise<unknown> {
}): Promise<Json> {
// Explicitly block EVM scopes, just in case.
assert(!scope.startsWith('eip155') && !scope.startsWith('wallet:eip155'));

Expand Down Expand Up @@ -332,7 +332,7 @@ export class MultichainRouter {
},
},
handler: HandlerType.OnProtocolRequest,
});
}) as Promise<Json>;
}

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

0 comments on commit 2425dcd

Please sign in to comment.