Skip to content

Commit

Permalink
fix: relay URL error (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
saadahmsiddiqui authored Jan 29, 2025
1 parent a26ac5f commit 4ce0b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/relay/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function getRequests(
environment: Environment,
): Promise<RelayRequestsResponse> {
const requestsPath = `/requests/v2`;
const url = new URL(RELAY_API_ENDPOINTS[environment], requestsPath);
const url = new URL(requestsPath, RELAY_API_ENDPOINTS[environment]);
url.searchParams.set("user", address);

const response: RelayRequestsResponse = await fetch(url.toString()).then(
Expand Down

0 comments on commit 4ce0b49

Please sign in to comment.