Skip to content

Commit f920f5d

Browse files
committed
Fix TypeScript compilation error and secure base URL configuration
1 parent fe47f46 commit f920f5d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/pages/api/v1/aggregatedBalances/balance.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export default async function handler(
8888
clarityApiKey: null,
8989
drepKey: null,
9090
scriptType: null,
91+
scriptCbor: "", // Required field for DbWallet type
92+
verified: [], // Required field for DbWallet type
9193
};
9294

9395
const mWallet = buildMultisigWallet(walletData, networkNum);

src/pages/api/v1/aggregatedBalances/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default async function handler(
6464

6565
try {
6666
// Test endpoints by making actual HTTP requests to fetch real data
67-
const baseUrl = req.headers.host ? `http://${req.headers.host}` : 'http://localhost:3000';
67+
const baseUrl = process.env.INTERNAL_BASE_URL || 'http://localhost:3000';
6868
const endpoints = {
6969
wallets: `${baseUrl}/api/v1/aggregatedBalances/wallets`,
7070
balance: `${baseUrl}/api/v1/aggregatedBalances/balance`,

0 commit comments

Comments
 (0)