Skip to content

Commit

Permalink
Fix walletInvokeMethodHandler type
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Dec 17, 2024
1 parent d1aad26 commit da3fb04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/multichain/src/handlers/wallet-invokeMethod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function walletInvokeMethodHandler(
origin: string;
params: {
scope: ExternalScopeString;
request: Pick<JsonRpcRequest, 'method' | 'params>;
request: Pick<JsonRpcRequest, 'method' | 'params'>;
};
},
_response: PendingJsonRpcResponse<Json>,
Expand All @@ -52,10 +52,7 @@ async function walletInvokeMethodHandler(
getSelectedNetworkClientId: () => string;
},
) {
const { scope, request: wrappedRequest } = request.params as {
scope: ExternalScopeString;
request: JsonRpcRequest;
};
const { scope, request: wrappedRequest } = request.params;

assertIsInternalScopeString(scope);

Expand Down

0 comments on commit da3fb04

Please sign in to comment.