Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Nov 6, 2024
1 parent ad985dc commit 58dd9b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bridge_ui/src/components/TokenSelectors/EvmTokenPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../../utils/consts";
import {
ethNFTToNFTParsedTokenAccount,
ethTokenToParsedTokenAccount,
evmTokenToParsedTokenAccount,
getEthereumNFT,
getEthereumToken,
isValidEthereumAddress,
Expand Down Expand Up @@ -90,7 +90,7 @@ export default function EvmTokenPicker(
);
} else {
const logoAndSymbol = await getTokenLogoAndSymbol(chainId, tokenAccount.address)
const tokenInfo = await ethTokenToParsedTokenAccount(
const tokenInfo = await evmTokenToParsedTokenAccount(
chainId,
tokenAccount as ethers_contracts.TokenImplementation,
signerAddress
Expand Down
4 changes: 2 additions & 2 deletions bridge_ui/src/components/Transfer/AddToMetamask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "../../store/selectors";
import { getEvmChainId } from "../../utils/consts";
import {
ethTokenToParsedTokenAccount,
evmTokenToParsedTokenAccount,
getEthereumToken,
} from "../../utils/evm";

Expand Down Expand Up @@ -42,7 +42,7 @@ export default function AddToMetamask() {
(async () => {
try {
const token = await getEthereumToken(targetAsset, provider);
const { symbol, decimals } = await ethTokenToParsedTokenAccount(
const { symbol, decimals } = await evmTokenToParsedTokenAccount(
targetChain,
token,
signerAddress
Expand Down
2 changes: 1 addition & 1 deletion bridge_ui/src/utils/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function getEthereumToken(
return token;
}

export async function ethTokenToParsedTokenAccount(
export async function evmTokenToParsedTokenAccount(
chainId: ChainId,
token: ethers_contracts.TokenImplementation,
signerAddress: string
Expand Down

0 comments on commit 58dd9b6

Please sign in to comment.