Skip to content

Commit

Permalink
Simplify function
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Sep 30, 2024
1 parent 79fa30c commit c5115d5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/domain/relay/limit-addresses.mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,10 @@ export class LimitAddressesMapper {
chainId: string;
address: `0x${string}`;
}): boolean {
const multiSendCallOnlyDeployments = getMultiSendCallOnlyDeployments(args);
const isCallOnly = multiSendCallOnlyDeployments.includes(args.address);

if (isCallOnly) {
return true;
}

return getMultiSendDeployments(args).includes(args.address);
return (
getMultiSendCallOnlyDeployments(args).includes(args.address) ||
getMultiSendDeployments(args).includes(args.address)
);
}

private getSafeAddressFromMultiSend = (
Expand Down

0 comments on commit c5115d5

Please sign in to comment.