File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default async function TxnPage({
60
60
< div className = "flex flex-col" >
61
61
< HashDisplay
62
62
hash = { log . txHash }
63
- name = "txn hash"
63
+ hashDesc = "txn hash"
64
64
numCharacters = { 8 }
65
65
copy
66
66
className = { cn (
@@ -81,18 +81,20 @@ export default async function TxnPage({
81
81
) }
82
82
</ div >
83
83
< div className = "grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3" >
84
- < MetricCard >
85
- < MetricCardHeader >
86
- < MetricCardTitle > Sent by</ MetricCardTitle >
87
- </ MetricCardHeader >
88
- < MetricCardContent >
89
- < HashDisplay
90
- hash = { log . caller }
91
- copy
92
- className = "text-3xl text-foreground"
93
- />
94
- </ MetricCardContent >
95
- </ MetricCard >
84
+ { log . caller && (
85
+ < MetricCard >
86
+ < MetricCardHeader >
87
+ < MetricCardTitle > Sent by</ MetricCardTitle >
88
+ </ MetricCardHeader >
89
+ < MetricCardContent >
90
+ < HashDisplay
91
+ hash = { log . caller }
92
+ copy
93
+ className = "text-3xl text-foreground"
94
+ />
95
+ </ MetricCardContent >
96
+ </ MetricCard >
97
+ ) }
96
98
< MetricCard >
97
99
< MetricCardHeader >
98
100
< MetricCardTitle > Timestamp</ MetricCardTitle >
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export async function getPopularTables(
68
68
export interface SqlLog {
69
69
blockNumber : number ;
70
70
txIndex : number ;
71
- caller : string ;
71
+ caller : string | null ;
72
72
error : string | null ;
73
73
eventIndex : number ;
74
74
eventType : "ContractRunSQL" | "ContractCreateTable" ;
You can’t perform that action at this time.
0 commit comments