Skip to content

Commit

Permalink
fix: not properly detecting eth usdt
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Sep 26, 2024
1 parent 569c91d commit e7eda6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/pages/bridge/bridge.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,5 @@ export const getEthUsdtApproveResetTx = (approval: TransactionParams) => {
};

export const isEthUsdt = (chainId: Hex, address: string) =>
chainId === CHAIN_IDS.MAINNET && address === ETH_USDT_ADDRESS;
chainId === CHAIN_IDS.MAINNET &&
address.toLowerCase() === ETH_USDT_ADDRESS.toLowerCase();

0 comments on commit e7eda6a

Please sign in to comment.