Skip to content

Commit

Permalink
Add 0x prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Oct 14, 2024
1 parent c4b4b16 commit 01f690a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export async function stackersForSignerInCycle(
};
}

const endpoint = `${opts.baseUrl}/extended/v2/pox/cycles/${opts.cycleNumber}/signers/${opts.signerPublicKey}/stackers?${search}`;
const signerPublicKey = opts.signerPublicKey.startsWith("0x")
? opts.signerPublicKey
: `0x${opts.signerPublicKey}`;
const endpoint = `${opts.baseUrl}/extended/v2/pox/cycles/${opts.cycleNumber}/signers/${signerPublicKey}/stackers?${search}`;
const res = await fetch(endpoint, init);

if (!res.ok) {
Expand Down

0 comments on commit 01f690a

Please sign in to comment.