Skip to content

Commit 4ce0b49

Browse files
fix: relay URL error (#140)
1 parent a26ac5f commit 4ce0b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/src/relay/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function getRequests(
1515
environment: Environment,
1616
): Promise<RelayRequestsResponse> {
1717
const requestsPath = `/requests/v2`;
18-
const url = new URL(RELAY_API_ENDPOINTS[environment], requestsPath);
18+
const url = new URL(requestsPath, RELAY_API_ENDPOINTS[environment]);
1919
url.searchParams.set("user", address);
2020

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

0 commit comments

Comments
 (0)