Skip to content

github action for Add code comment to encode.ts explaining the strict…#159

Open
yunus-dev-codecrafter wants to merge 3 commits intoBoxkit-Labs:mainfrom
yunus-dev-codecrafter:github_Action
Open

github action for Add code comment to encode.ts explaining the strict…#159
yunus-dev-codecrafter wants to merge 3 commits intoBoxkit-Labs:mainfrom
yunus-dev-codecrafter:github_Action

Conversation

@yunus-dev-codecrafter
Copy link
Copy Markdown

closes #124
… bigint-only policy for IDs
The comment:

Clearly marks the requirement with an "IMPORTANT:" prefix
Explains the technical reason why bigint is necessary (JavaScript numbers can't safely represent integers beyond 2^53 - 1)
States the consequence of not following this rule (precision loss and incorrect muxed addresses)
Is positioned prominently right before the function definition for maximum visibility to future contributors

@codeZe-us codeZe-us self-requested a review March 26, 2026 21:09
@codeZe-us
Copy link
Copy Markdown
Contributor

@yunus-dev-codecrafter please fix conflict on your branch

@codeZe-us
Copy link
Copy Markdown
Contributor

@yunus-dev-codecrafter i do not understand this PR, it does not resolve the issue you were been assigned

@yunus-dev-codecrafter
Copy link
Copy Markdown
Author

Closes #124

I added a clear IMPORTANT note explaining that IDs must use bigint. This is because JavaScript numbers can’t safely handle very large integers (above 2^53 - 1).

If this isn’t followed, it can cause wrong values and incorrect muxed addresses.

The note is placed right before the function so future contributors won’t miss it.

@codeZe-us
Copy link
Copy Markdown
Contributor

@yunus-dev-codecrafter Ok, PR reviewed and confirmed, please delete the node modules folder from this PR, it is not needed

It has been deleted
@yunus-dev-codecrafter
Copy link
Copy Markdown
Author

yunus-dev-codecrafter commented Mar 30, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add code comment to encode.ts explaining the strict bigint-only policy for IDs

2 participants