Skip to content

Commit

Permalink
fix: double slash in faucet URL (#10883)
Browse files Browse the repository at this point in the history
Fix an issue building the drip url if `faucetUrl` contained a trialing
slash
  • Loading branch information
alexghr authored Dec 19, 2024
1 parent bd72997 commit 9aff0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/cli/src/cmds/devnet/faucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function dripFaucet(
json: boolean,
log: LogFn,
): Promise<void> {
const url = new URL(`${faucetUrl}/drip/${account.toString()}`);
const url = new URL(`/drip/${account.toString()}`, faucetUrl);
url.searchParams.set('asset', asset);
const res = await fetch(url);
if (res.status === 200) {
Expand Down

0 comments on commit 9aff0e1

Please sign in to comment.