Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MayUseToken vulnerability in AccountUpdates #279

Closed
wants to merge 4 commits into from

Conversation

MartinMinkov
Copy link
Contributor

No description provided.

@MartinMinkov MartinMinkov changed the title Fix MayUseToken vulnerability in AccountUpdatents Fix MayUseToken vulnerability in AccountUpdates Jul 9, 2024
…ds from createMayUseToken

feat(derived-leaves.ts): add check() method to createMayUseToken to validate that parentsOwnToken and inheritFromParent are not both true, improving data integrity and catching potential errors early

The empty() and toJSON() methods were removed because they were not being used in the codebase. The new check() method was added to validate the integrity of the MayUseToken data structure by ensuring that parentsOwnToken and inheritFromParent are not both true at the same time, which would be an invalid state. This check helps catch potential errors early and improves the overall reliability and maintainability of the code.
@MartinMinkov MartinMinkov marked this pull request as ready for review July 10, 2024 22:58
@MartinMinkov
Copy link
Contributor Author

Closed for #280

@MartinMinkov MartinMinkov deleted the audit/may-use-token branch July 11, 2024 21:15
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.

1 participant