Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Dec 16, 2024
1 parent c002eb3 commit 40bef4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/connect/src/providers/sanctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export const getTrmChainName = (chain: Chain) => {
if (trmChainNames[id]) return trmChainNames[id];
if (isCosmWasmChain(toChainNameFormat(chain))) return "cosmos";
// TO DO: Add support for other evm chains with the new sdk
if (isEVMChain(toChainNameFormat(chain)) || chain === "Worldchain") return "ethereum";
if (isEVMChain(toChainNameFormat(chain)) || chain === "Worldchain")
return "ethereum";

return "";
};
Expand Down Expand Up @@ -98,7 +99,8 @@ export const isSanctionedAddress = async (
address: transferDetails.toWalletAddress,
}),
...(transferDetails.toChain !== "Ethereum" &&
(isEVMChain(toChainNameFormat(transferDetails.toChain)) || transferDetails.toChain === "Worldchain")
(isEVMChain(toChainNameFormat(transferDetails.toChain)) ||
transferDetails.toChain === "Worldchain")
? [
isSanctioned({
chain: "ethereum",
Expand Down

0 comments on commit 40bef4d

Please sign in to comment.