Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/dashboard/src/@/components/blocks/wallet-address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export function WalletAddress(props: {

// special case for zero address
if (address === ZERO_ADDRESS) {
return <span className="cursor-pointer font-mono">{shortenedAddress}</span>;
return (
<span className={cn("cursor-pointer font-mono", props.className)}>
{shortenedAddress}
</span>
);
}

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExternalLinkIcon, GlobeIcon, Settings2Icon } from "lucide-react";
import Link from "next/link";
import { useMemo } from "react";
import type { ThirdwebContract } from "thirdweb";
import { type ThirdwebContract, ZERO_ADDRESS } from "thirdweb";
import type { ChainMetadata } from "thirdweb/chains";
import { Img } from "@/components/blocks/Img";
import { Button } from "@/components/ui/button";
Expand Down Expand Up @@ -149,7 +149,7 @@ export function ContractHeaderUI(props: {

{/* bottom row */}
<div className="flex flex-row flex-wrap items-center gap-2">
{props.contractCreator && (
{props.contractCreator && props.contractCreator !== ZERO_ADDRESS && (
<ContractCreatorBadge
clientContract={props.clientContract}
contractCreator={props.contractCreator}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ export async function fetchTokenInfoFromBridge(params: {
}) {
try {
const res = await fetch(
`https://bridge.${isProd ? "thirdweb.com" : "thirdweb-dev.com"}/v1/tokens?chainId=${params.chainId}&tokenAddress=${params.tokenAddress}&clientId=${params.clientId}`,
`https://bridge.${isProd ? "thirdweb.com" : "thirdweb-dev.com"}/v1/tokens?chainId=${params.chainId}&tokenAddress=${params.tokenAddress}`,
{
headers: {
"x-client-id": params.clientId,
},
},
);

if (!res.ok) {
console.error(
`Failed to fetch token info from bridge: ${await res.text()}`,
);
return null;
}

Expand Down
6 changes: 5 additions & 1 deletion apps/nebula/src/@/components/blocks/wallet-address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ export function WalletAddress(props: {

// special case for zero address
if (address === ZERO_ADDRESS) {
return <span className="cursor-pointer font-mono">{shortenedAddress}</span>;
return (
<span className={cn("cursor-pointer font-mono text-xs", props.className)}>
{shortenedAddress}
</span>
);
}

return (
Expand Down
Loading