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
30 changes: 19 additions & 11 deletions src/app/bundles/[uuid]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function TransactionDetails({
</div>
<div className="text-xs text-gray-500 mt-0.5">
{tx.signer.slice(0, 6)}...{tx.signer.slice(-4)} →{" "}
{tx.to.slice(0, 6)}...{tx.to.slice(-4)}
{tx.to
? `${tx.to.slice(0, 6)}...${tx.to.slice(-4)}`
: "Contract Creation"}
</div>
</div>
</div>
Expand Down Expand Up @@ -251,16 +253,22 @@ function TransactionDetails({
<tr>
<td className="text-gray-500 py-2">To</td>
<td className="py-2 text-right">
<span className="inline-flex items-center gap-1">
<ExplorerLink
type="address"
value={tx.to}
className="font-mono text-gray-900"
>
{tx.to}
</ExplorerLink>
<CopyButton text={tx.to} />
</span>
{tx.to ? (
<span className="inline-flex items-center gap-1">
<ExplorerLink
type="address"
value={tx.to}
className="font-mono text-gray-900"
>
{tx.to}
</ExplorerLink>
<CopyButton text={tx.to} />
</span>
) : (
<span className="font-mono text-gray-500">
Contract Creation
</span>
)}
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/s3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface BundleTransaction {
gas: string;
maxFeePerGas: string;
maxPriorityFeePerGas: string;
to: string;
to: string | null;
value: string;
accessList: unknown[];
input: string;
Expand Down
Loading