Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Sep 18, 2024
1 parent 6f60618 commit f527852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
10 changes: 1 addition & 9 deletions packages/permission-controller/src/permission-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ export function getPermissionMiddlewareFactory({
): Promise<void> => {
const { method, params } = req;

// are permissions for this domain origin multichain?
// if so
if(permissionOrriginMultichain) {

}
else {

// Skip registered unrestricted methods.
if (isUnrestrictedMethod(method)) {
return next();
Expand All @@ -100,8 +93,7 @@ export function getPermissionMiddlewareFactory({
}

res.result = result;
return undefined;|
}
return undefined;
};

return createAsyncMiddleware(permissionsMiddleware);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ export const createSelectedNetworkMiddleware = (
if (!req.origin) {
throw new Error("Request object is lacking an 'origin'");
}
req.chainId chainId = getChainIdForDomain(req.origin);
req.networkClientId = getChainIdFromNetworkClientId(req.chainId)
// req.networkClientId = getNetworkClientIdForDomain(req.origin);

req.networkClientId = getNetworkClientIdForDomain(req.origin);
return next();
};
};

0 comments on commit f527852

Please sign in to comment.