Skip to content

Commit

Permalink
Update packages/multichain/src/handlers/wallet-invokeMethod.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Elliot Winkler <[email protected]>
  • Loading branch information
jiexi and mcmire authored Dec 17, 2024
1 parent f94c4f6 commit d1aad26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/multichain/src/handlers/wallet-invokeMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ import { parseScopeString } from '../scope/types';
* @param hooks.getSelectedNetworkClientId - the hook for getting the current globally selected networkClientId.
*/
async function walletInvokeMethodHandler(
request: JsonRpcRequest & { origin: string },
request: JsonRpcRequest & {
origin: string;
params: {
scope: ExternalScopeString;
request: Pick<JsonRpcRequest, 'method' | 'params>;
};
},
_response: PendingJsonRpcResponse<Json>,
next: () => void,
end: (error: Error) => void,
Expand Down

0 comments on commit d1aad26

Please sign in to comment.