Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/scripts/lib/smart-transaction/smart-transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ class SmartTransactionHook {
status: SmartTransactionStatuses.PENDING,
creationTime: Date.now(),
uuid,
chainId: this.#chainId,
},
isDapp: this.#isDapp,
txId: this.#transactionMeta.id,
Expand Down
2 changes: 2 additions & 0 deletions test/jest/mock-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ export const createSwapsMockStore = () => {
'0x55ad39634ee10d417b6e190cfd3736098957e958879cffe78f1f00f4fd2654d6',
minedTx: 'success',
},
chainId: CHAIN_IDS.MAINNET,
},
{
uuid: 'uuid2',
Expand All @@ -689,6 +690,7 @@ export const createSwapsMockStore = () => {
'0x55ad39634ee10d417b6e190cfd3736098957e958879cffe78f1f00f4fd2654d6',
minedTx: 'success',
},
chainId: CHAIN_IDS.MAINNET,
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
IconColor,
} from '../../../helpers/constants/design-system';
import { useI18nContext } from '../../../hooks/useI18nContext';
import { getCurrentChainId } from '../../../../shared/modules/selectors/networks';
import { getFullTxData } from '../../../selectors';
import { BaseUrl } from '../../../../shared/constants/urls';
import { hideLoadingIndication } from '../../../store/actions';
Expand Down Expand Up @@ -296,7 +295,7 @@ export const SmartTransactionStatusPage = ({
smartTransaction?.status?.startsWith(SmartTransactionStatuses.CANCELLED),
);

const chainId: string = useSelector(getCurrentChainId);
const chainId: string | undefined = smartTransaction?.chainId;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: This same selector is used in the awaiting-swap component.
const fullTxData = useSelector((state) => getFullTxData(state, txId)) || {};
Expand Down
Loading