diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/bridge-status.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/bridge-status.tsx index 9f05c4b0188..961628ebb39 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/bridge-status.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/bridge-status.tsx @@ -10,7 +10,11 @@ import { CircleXIcon, } from "lucide-react"; import Link from "next/link"; -import { NATIVE_TOKEN_ADDRESS, type ThirdwebClient } from "thirdweb"; +import { + getAddress, + NATIVE_TOKEN_ADDRESS, + type ThirdwebClient, +} from "thirdweb"; import type { Status, Token } from "thirdweb/bridge"; import { status } from "thirdweb/bridge"; import { toTokens } from "thirdweb/utils"; @@ -123,6 +127,8 @@ function TokenInfo(props: { const isNativeToken = props.token.address.toLowerCase() === NATIVE_TOKEN_ADDRESS.toLowerCase(); + const tokenAddress = getAddress(props.token.address); + return (
@@ -206,7 +212,7 @@ function TokenInfo(props: {

{props.addressLabel}

diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/page.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/page.tsx index 2025563d565..5b7293e37f5 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/page.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/tx/[txHash]/page.tsx @@ -8,7 +8,7 @@ import { Clock4Icon, InfoIcon, } from "lucide-react"; -import { toTokens } from "thirdweb"; +import { getAddress, toTokens } from "thirdweb"; import { status } from "thirdweb/bridge"; import type { ChainMetadata } from "thirdweb/chains"; import { @@ -153,6 +153,9 @@ function GeneericTxDetails(props: { const timestamp = getDatefromTimestamp(block.timestamp); + const fromAddress = getAddress(transaction.from); + const toAddress = transaction.to ? getAddress(transaction.to) : undefined; + return (
{/* section 1 */} @@ -216,8 +219,8 @@ function GeneericTxDetails(props: {
- {transaction.to && ( + {toAddress && (