Skip to content

Commit

Permalink
fix removed methdo
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Sep 3, 2024
1 parent 80220f7 commit bd65df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Transactions/TransactionSimulatedEventRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useExternalToken } from '@/resources/assets/externalAssetsQuery';
import { EventInfo, EventType } from '@/components/Transactions/types';
import { infoForEventType, CARD_ROW_HEIGHT } from '@/components/Transactions/constants';
import { EventIcon } from '@/components/Transactions/TransactionIcons';
import { ethereumUtils } from '@/utils';
import { chainsIdByName } from '@/networks/chains';

type TransactionSimulatedEventRowProps = {
amount: string | 'unlimited';
Expand All @@ -30,7 +30,7 @@ export const TransactionSimulatedEventRow = ({ amount, asset, eventType, price }
const theme = useTheme();
const { nativeCurrency } = useAccountSettings();

const chainId = ethereumUtils.getChainIdFromNetwork((asset?.network as Network) || Network.mainnet);
const chainId = chainsIdByName[asset?.network as Network];

const { data: externalAsset } = useExternalToken({
address: asset?.assetCode || '',
Expand Down

0 comments on commit bd65df8

Please sign in to comment.