File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ export function isBrotherDomain(domain: string): boolean {
16
16
/**
17
17
* Encodes a Brother domain name into a bigint value.
18
18
* This uses the same encoding logic as Starknet ID.
19
- * @param domain - The domain name without .brother suffix
19
+ * @param domain - The domain name (with or without .brother suffix)
20
20
* @returns encoded bigint value
21
21
* @example
22
22
* ```typescript
23
- * const encoded = encodeBrotherDomain("myname.brother");
24
- * // Returns a bigint value
23
+ * const encoded1 = encodeBrotherDomain("myname.brother");
24
+ * const encoded2 = encodeBrotherDomain("myname");
25
+ * // Both return the same bigint value
25
26
* ```
26
27
*/
27
28
export function encodeBrotherDomain ( domain : string ) : bigint {
You can’t perform that action at this time.
0 commit comments