Skip to content

Commit e8a8c13

Browse files
committed
fix more types
1 parent 3c33120 commit e8a8c13

File tree

1 file changed

+5
-4
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/lib

1 file changed

+5
-4
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/lib/analytics.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { THIRDWEB_ENGINE_CLOUD_URL } from "@/constants/env";
22
import type { TransactionStats } from "../../../../../../../../types/analytics";
33
import { getAuthToken } from "../../../../../../api/lib/getAuthToken";
4+
import type { Address, Hex } from "thirdweb";
45

56
// Define the structure of the data we expect back from our fetch function
67
export type TransactionSummaryData = {
@@ -147,8 +148,8 @@ export async function getTransactionsChart({
147148
}
148149

149150
type TransactionParam = {
150-
to: string;
151-
data: string;
151+
to: Address;
152+
data: Hex;
152153
value: string;
153154
};
154155

@@ -167,9 +168,9 @@ type Transaction = {
167168
id: string;
168169
batchIndex: number;
169170
chainId: string;
170-
from: string;
171+
from: Address;
171172
transactionParams: TransactionParam[];
172-
transactionHash: string | null;
173+
transactionHash: Hex | null;
173174
confirmedAt: string | null;
174175
confirmedAtBlockNumber: number | null;
175176
enrichedData: unknown[];

0 commit comments

Comments
 (0)