Skip to content

Commit

Permalink
chore: improve typing for active quote to have better pricing data
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Nov 28, 2024
1 parent 1d50d37 commit 391eef3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/pages/bridge/hooks/useSubmitBridgeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useDispatch } from 'react-redux';
import { zeroAddress } from 'ethereumjs-util';
import { useHistory } from 'react-router-dom';
import { TransactionMeta } from '@metamask/transaction-controller';
import { QuoteResponse } from '../types';
import { QuoteMetadata, QuoteResponse } from '../types';
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
import { setDefaultHomeActiveTabName } from '../../../store/actions';
import { startPollingForBridgeTxStatus } from '../../../ducks/bridge-status/actions';
Expand All @@ -17,7 +17,9 @@ export default function useSubmitBridgeTransaction() {
const { handleApprovalTx } = useHandleApprovalTx();
const { handleBridgeTx } = useHandleBridgeTx();

const submitBridgeTransaction = async (quoteResponse: QuoteResponse) => {
const submitBridgeTransaction = async (
quoteResponse: QuoteResponse & QuoteMetadata,
) => {
// Execute transaction(s)
let approvalTxMeta: TransactionMeta | undefined;
if (quoteResponse?.approval) {
Expand Down

0 comments on commit 391eef3

Please sign in to comment.