@@ -566,36 +566,55 @@ export function updateBridgeApprovalTransaction(
566
566
* @param propsToUpdate.estimatedBaseFee - Estimated base fee of the transaction
567
567
* @param propsToUpdate.approvalTxId - Transaction id of the approval transaction
568
568
* @param propsToUpdate.destinationChainId - The hex chain ID of the destination chain
569
+ * @param propsToUpdate.bridgeSteps - The steps of the bridge transaction
570
+ * @param propsToUpdate.sourceTokenAmount - The raw amount of the source token
571
+ * @param propsToUpdate.sourceTokenDecimals - The decimals of the source token
572
+ * @param propsToUpdate.sourceTokenAddress - The address of the source token
573
+ * @param propsToUpdate.destinationTokenAmount - The raw amount of the destination token
569
574
* @returns The updated transaction meta object.
570
575
*/
571
576
export function updateBridgeTransaction (
572
577
transactionMeta : TransactionMeta ,
573
578
{
574
- destinationChainId ,
579
+ sourceTokenAmount ,
575
580
sourceTokenSymbol,
581
+ sourceTokenDecimals,
582
+ sourceTokenAddress,
583
+
584
+ destinationTokenAmount,
576
585
destinationTokenSymbol,
577
- type,
578
586
destinationTokenDecimals,
579
587
destinationTokenAddress,
588
+
589
+ type,
590
+ destinationChainId,
580
591
swapMetaData,
581
592
swapTokenValue,
582
593
estimatedBaseFee,
583
594
approvalTxId,
595
+ bridgeSteps,
584
596
} : Partial < TransactionMeta > ,
585
597
) : TransactionMeta {
586
598
validateIfTransactionUnapproved ( transactionMeta , 'updateBridgeTransaction' ) ;
587
599
588
600
let bridgeTransaction = {
601
+ sourceTokenAddress,
589
602
sourceTokenSymbol,
603
+ sourceTokenAmount,
604
+ sourceTokenDecimals,
605
+
606
+ destinationTokenAddress,
590
607
destinationTokenSymbol,
591
- type ,
608
+ destinationTokenAmount ,
592
609
destinationTokenDecimals,
593
- destinationTokenAddress,
610
+
611
+ type,
594
612
swapMetaData,
595
613
swapTokenValue,
596
614
estimatedBaseFee,
597
615
approvalTxId,
598
616
destinationChainId,
617
+ bridgeSteps,
599
618
} ;
600
619
// TODO: Replace `any` with type
601
620
// eslint-disable-next-line @typescript-eslint/no-explicit-any
0 commit comments