Skip to content

Commit

Permalink
Add destinationAddress prop to _TransactionDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Mar 22, 2024
1 parent d2360ae commit c86a517
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/synapse-interface/slices/_transactions/reducer.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { PayloadAction, createSlice } from '@reduxjs/toolkit'
import { Address } from 'viem'

import { Chain, Token } from '@/utils/types'

/** TODO: Rename entire slice once done refactoring prior Activity flow */
export interface _TransactionDetails {
address: string
destinationAddress: Address | null
originChain: Chain
originToken: Token
destinationChain: Chain
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/slices/transactions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface PendingBridgeTransaction {
isSubmitted: boolean
estimatedTime: number
bridgeModuleName: string
destinationAddress?: Address
destinationAddress: Address | null
}

export const addPendingBridgeTransaction =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const use_TransactionsListener = () => {
dispatch(
addTransaction({
address,
destinationAddress: tx.destinationAddress,
originTxHash: tx.transactionHash,
originValue: tx.originValue,
originChain: tx.originChain,
Expand Down

0 comments on commit c86a517

Please sign in to comment.