diff --git a/src/app/bundles/[uuid]/page.tsx b/src/app/bundles/[uuid]/page.tsx
index cf0df3d..47e32ed 100644
--- a/src/app/bundles/[uuid]/page.tsx
+++ b/src/app/bundles/[uuid]/page.tsx
@@ -183,7 +183,9 @@ function TransactionDetails({
{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"}
@@ -251,16 +253,22 @@ function TransactionDetails({
| To |
-
-
- {tx.to}
-
-
-
+ {tx.to ? (
+
+
+ {tx.to}
+
+
+
+ ) : (
+
+ Contract Creation
+
+ )}
|
diff --git a/src/lib/s3.ts b/src/lib/s3.ts
index 32281e3..59c2f1b 100644
--- a/src/lib/s3.ts
+++ b/src/lib/s3.ts
@@ -93,7 +93,7 @@ export interface BundleTransaction {
gas: string;
maxFeePerGas: string;
maxPriorityFeePerGas: string;
- to: string;
+ to: string | null;
value: string;
accessList: unknown[];
input: string;