Skip to content

Commit

Permalink
Use destinationAddress to determine dest explorer link
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Mar 22, 2024
1 parent c86a517 commit 74a67b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useIsTxReverted } from './helpers/useIsTxReverted'

interface _TransactionProps {
connectedAddress: string
destinationAddress: Address | null
originValue: number
originChain: Chain
originToken: Token
Expand All @@ -37,6 +38,7 @@ interface _TransactionProps {
/** TODO: Update naming after refactoring existing Activity / Transaction flow */
export const _Transaction = ({
connectedAddress,
destinationAddress,
originValue,
originChain,
originToken,
Expand All @@ -62,9 +64,11 @@ export const _Transaction = ({
)
const [destExplorerAddressLink, destExplorerName] = getExplorerAddressLink(
destinationChain?.id,
connectedAddress
destinationAddress ?? connectedAddress
)

console.log('destExplorerAddressLink:', destExplorerAddressLink)

const {
remainingTime,
delayedTime,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const _Transactions = ({
<_Transaction
key={tx.timestamp}
connectedAddress={connectedAddress}
destinationAddress={tx.destinationAddress}
originValue={Number(tx.originValue)}
originChain={originChain}
originToken={originToken}
Expand Down

0 comments on commit 74a67b6

Please sign in to comment.