From 2bd66630500d99c2cc3d63cbea97e0e45f583ecc Mon Sep 17 00:00:00 2001 From: KutluhanETH Date: Mon, 7 Sep 2026 22:27:26 +0000 Subject: [PATCH] docs(did): fix createDidPkhUri JSDoc argument order Align @param tags and examples with the real (chainId, address) signature, and use a full Solana CAIP-2 chain ID in the example. Fixes #206 --- packages/did/src/methods/did-pkh.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/did/src/methods/did-pkh.ts b/packages/did/src/methods/did-pkh.ts index 5b054431..54793a2e 100644 --- a/packages/did/src/methods/did-pkh.ts +++ b/packages/did/src/methods/did-pkh.ts @@ -103,17 +103,20 @@ export function caip10AccountIdFromDidPkhUri( /** * Create a did:pkh URI * + * @param chainId - The full CAIP-2 chain ID (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`) * @param address - The address to create the did:pkh URI for - * @param chainId - The full CAIP-2 chain ID (e.g. `eip155:1`, `solana`) * @returns The did:pkh URI * * @example * ```ts - * const did = createDidPkhUri("0x1234567890123456789012345678901234567890", "eip155:1") + * const did = createDidPkhUri("eip155:1", "0x1234567890123456789012345678901234567890") * // did:pkh:eip155:1:0x1234567890123456789012345678901234567890 * - * const did = createDidPkhUri("FNoGHiv7DKPLXHfuhiEWpJ8qYitawGkuaYwfYkuvFk1P", "solana") - * // did:pkh:solana:FNoGHiv7DKPLXHfuhiEWpJ8qYitawGkuaYwfYkuvFk1P + * const did = createDidPkhUri( + * "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", + * "FNoGHiv7DKPLXHfuhiEWpJ8qYitawGkuaYwfYkuvFk1P", + * ) + * // did:pkh:solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp:FNoGHiv7DKPLXHfuhiEWpJ8qYitawGkuaYwfYkuvFk1P * ``` */ export function createDidPkhUri(